mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
feat: ✨ Add DevShell to flake
This commit is contained in:
parent
385997cdcc
commit
2d921438a9
24
flake.nix
24
flake.nix
|
|
@ -32,6 +32,30 @@
|
||||||
default = self.packages.${system}.versia-server;
|
default = self.packages.${system}.versia-server;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
// flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [self.overlays.default];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.mkShell rec {
|
||||||
|
libPath = with pkgs;
|
||||||
|
lib.makeLibraryPath [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
];
|
||||||
|
LD_LIBRARY_PATH = "${libPath}";
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
bun
|
||||||
|
vips
|
||||||
|
pnpm
|
||||||
|
nodePackages.typescript
|
||||||
|
nodePackages.typescript-language-server
|
||||||
|
nix-ld
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
// {
|
// {
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
versia-server = import ./nix/module.nix;
|
versia-server = import ./nix/module.nix;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue