diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24T10·04+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24T10·04+0200 |
commit | 9b63bb88c8873d192b8b01608e5d230817dd3375 (patch) | |
tree | 1144ad15e289b041c99290d8ce18b638f8b3d790 /src/nix-build/nix-build.cc | |
parent | 1196470e92f7e698cac28b7d84371fd4d28385ec (diff) |
nix-shell -p: Use runCommandCC
This restores pre-17.03 behaviour by making gcc available.
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-x | src/nix-build/nix-build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index b4206033cf5f..bb031d515134 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -325,7 +325,7 @@ int main(int argc, char ** argv) if (packages) { instArgs.push_back("--expr"); std::ostringstream joined; - joined << "with import <nixpkgs> { }; runCommand \"shell\" { buildInputs = [ "; + joined << "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ "; for (const auto & i : exprs) joined << '(' << i << ") "; joined << "]; } \"\""; |