nix: remove pointless let..in from common

This commit is contained in:
Bernardo Meurer 2022-01-26 12:57:25 -08:00
parent 0419f3b47b
commit fd61b4ca59
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -53,9 +53,6 @@ in
, stateDir
, storeDir
}:
let
sh = busybox-sandbox-shell;
in
stdenv.mkDerivation {
pname = "nix";
@ -158,7 +155,7 @@ stdenv.mkDerivation {
# option was removed in 2.4
"--disable-init-state"
] ++ lib.optionals stdenv.isLinux [
"--with-sandbox-shell=${sh}/bin/busybox"
"--with-sandbox-shell=${busybox-sandbox-shell}/bin/busybox"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform ? nix && stdenv.hostPlatform.nix ? system) [
"--with-system=${stdenv.hostPlatform.nix.system}"
] ++ lib.optionals (!withLibseccomp) [