summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Reedy <geoff@programmer-monk.net>2021-09-08 08:54:24 -0600
committerGitHub <noreply@github.com>2021-09-08 16:54:24 +0200
commitc524608dca14c8716eaefa88d2aa8c757af48daa (patch)
tree51175a31e05d1c92d6084d10aace9bcd821f552c
parent6338963691a3c8693a8a428605dfcb2428a2d540 (diff)
mkshell: small fix for #137005 (#137105)
I somehow accidentally left out the lib.flatten from mergeInputs. Without it, subtractLists won't ever remove anything from the inputs since the inputs will be a list of lists.
-rw-r--r--pkgs/build-support/mkshell/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/mkshell/default.nix b/pkgs/build-support/mkshell/default.nix
index f85a11394cb5..27ee7e322624 100644
--- a/pkgs/build-support/mkshell/default.nix
+++ b/pkgs/build-support/mkshell/default.nix
@@ -16,7 +16,7 @@
let
mergeInputs = name:
(attrs.${name} or []) ++
- (lib.subtractLists inputsFrom (lib.catAttrs name inputsFrom));
+ (lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom)));
rest = builtins.removeAttrs attrs [
"packages"