diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 7e8acaa4..7e3eec7f 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -226,7 +226,7 @@ die "$0: ā€˜-pā€™ and ā€˜-Eā€™ are mutually exclusive\n" if $packages && $fromAr if ($packages) { push @instArgs, "--expr"; @exprs = ( - 'with import { }; runCommand "shell" { buildInputs = [ ' + 'with import { }; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ ' . (join " ", map { "($_)" } @exprs) . ']; } ""'); } elsif (!$fromArgs) { @exprs = ("shell.nix") if scalar @exprs == 0 && $runEnv && -e "shell.nix";