nix: shell.nix works standalone again
parent
1e8afa8a2f
commit
64e272be5d
11
flake.nix
11
flake.nix
|
@ -24,6 +24,15 @@
|
||||||
}));
|
}));
|
||||||
in
|
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;
|
with pkgs;
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ mkShell rec {
|
||||||
|
|
||||||
libxkbcommon # To use the wayland feature
|
libxkbcommon # To use the wayland feature
|
||||||
wayland
|
wayland
|
||||||
|
] ++ additionalBuildInputs;
|
||||||
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
|
||||||
];
|
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue