diff --git a/flake.nix b/flake.nix index c47acf5..d0fd260 100644 --- a/flake.nix +++ b/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)) + ]; + }; + }); }; } diff --git a/shell.nix b/shell.nix index b2686b6..096612c 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,4 @@ -{ pkgs ? import { } }: +{ pkgs ? import { }, 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; }