about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-24T10·04+0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-24T10·04+0200
commit9b63bb88c8873d192b8b01608e5d230817dd3375 (patch)
tree1144ad15e289b041c99290d8ce18b638f8b3d790 /src
parent1196470e92f7e698cac28b7d84371fd4d28385ec (diff)
nix-shell -p: Use runCommandCC
This restores pre-17.03 behaviour by making gcc available.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
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 << "]; } \"\"";