nix-shell -p: Use runCommandCC

This restores pre-17.03 behaviour by making gcc available.
This commit is contained in:
Eelco Dolstra 2017-04-24 12:04:01 +02:00
parent 1196470e92
commit 9b63bb88c8
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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 << "]; } \"\"";