refactor: ♻️ [BROKEN] Refactor Nix build to use fetchBunDeps PR

This commit is contained in:
Jesse Wierzbinski 2025-06-22 17:46:29 +02:00
parent 03940cd8fd
commit 1a666e8371
No known key found for this signature in database
4 changed files with 151 additions and 303 deletions

View file

@ -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;
};