Skip to content

Commit 9b63bb8

Browse files
committedApr 24, 2017
nix-shell -p: Use runCommandCC
This restores pre-17.03 behaviour by making gcc available.
1 parent 1196470 commit 9b63bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/nix-build/nix-build.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ int main(int argc, char ** argv)
325325
if (packages) {
326326
instArgs.push_back("--expr");
327327
std::ostringstream joined;
328-
joined << "with import <nixpkgs> { }; runCommand \"shell\" { buildInputs = [ ";
328+
joined << "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ";
329329
for (const auto & i : exprs)
330330
joined << '(' << i << ") ";
331331
joined << "]; } \"\"";

0 commit comments

Comments
 (0)
Please sign in to comment.