nix: shell.nix works standalone again

This commit is contained in:
Zynh Ludwig 2024-07-29 23:30:34 -07:00
parent 1e8afa8a2f
commit 64e272be5d
2 changed files with 12 additions and 5 deletions

View file

@ -24,6 +24,15 @@
}));
in
{
devShells = forAllSystems (pkgs: { default = import ./shell.nix { inherit pkgs; }; });
devShells = forAllSystems
(pkgs: {
default = import ./shell.nix
{
inherit pkgs;
additionalBuildInputs = [
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
];
};
});
};
}

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> { } }:
{ pkgs ? import <nixpkgs> { }, additionalBuildInputs ? [ ] }:
with pkgs;
@ -18,8 +18,6 @@ mkShell rec {
libxkbcommon # To use the wayland feature
wayland
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
];
] ++ additionalBuildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
}