diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 618895d387d..9ece6aec505 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -249,7 +249,7 @@ static void _main(int argc, char * * argv) if (packages) { std::ostringstream joined; - joined << "with import { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ "; + joined << "with import { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { nativeBuildInputs = [ "; for (const auto & i : left) joined << '(' << i << ") "; joined << "]; } \"\"";