Skip to content

Commit

Permalink
nix-shell -p: Use runCommandCC
Browse files Browse the repository at this point in the history
This restores pre-17.03 behaviour by making gcc available.
  • Loading branch information
edolstra committed Apr 24, 2017
1 parent 1196470 commit 9b63bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Expand Up @@ -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 << "]; } \"\"";
Expand Down

0 comments on commit 9b63bb8

Please sign in to comment.