mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor: ♻️ [BROKEN] Refactor Nix build to use fetchBunDeps PR
This commit is contained in:
parent
03940cd8fd
commit
1a666e8371
4 changed files with 151 additions and 303 deletions
14
flake.nix
14
flake.nix
|
|
@ -2,7 +2,8 @@
|
|||
description = "Versia Server";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-bun.url = "github:0xdsqr/nixpkgs/add-bun-support";
|
||||
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
|
@ -10,12 +11,21 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-bun,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
overlays.default = final: prev: rec {
|
||||
versia-server = final.callPackage ./nix/package.nix {};
|
||||
versia-server = final.callPackage ./nix/package.nix {
|
||||
inherit
|
||||
(nixpkgs-bun.legacyPackages.x86_64-linux)
|
||||
fetchBunDeps
|
||||
bunConfigHook
|
||||
bunInstallHook
|
||||
bunBuildHook
|
||||
;
|
||||
};
|
||||
versia-server-worker = final.callPackage ./nix/package-worker.nix {
|
||||
inherit versia-server;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue