Skip to content

Commit

Permalink
fix: correctly extend devShells
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Feb 6, 2025
1 parent 3d42e14 commit 21c0920
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/extendDerivations.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ with builtins;
buildInputs ? [ ],
depsBuildBuild ? [ ],
env ? null,
inputsFrom ? [ ],
nativeBuildInputs ? [ ],
packages ? [ ],
}:
mapAttrs (
n: v:
Expand All @@ -20,9 +18,7 @@ mapAttrs (
{
buildInputs = (attrs.buildInputs or [ ]) ++ buildInputs;
depsBuildBuild = (attrs.depsBuildBuild or [ ]) ++ depsBuildBuild;
inputsFrom = (attrs.inputsFrom or [ ]) ++ inputsFrom;
nativeBuildInputs = (attrs.nativeBuildInputs or [ ]) ++ nativeBuildInputs;
packages = (attrs.packages or [ ]) ++ packages;
}
// optionalAttrs (env != null) {
env = (attrs.env or { }) // env;
Expand Down
2 changes: 1 addition & 1 deletion lib/rust/mkFlake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ self.lib.mkFlake {
// {
devShells = extendDerivations (
{
packages = [
nativeBuildInputs = [
attrs.hostRustToolchain
];
}
Expand Down

0 comments on commit 21c0920

Please sign in to comment.