nix: shell.nix works standalone again
parent
1e8afa8a2f
commit
64e272be5d
11
flake.nix
11
flake.nix
|
@ -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))
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue