nix-shell -p: Use runCommandCC
This restores pre-17.03 behaviour by making gcc available.
This commit is contained in:
parent
1196470e92
commit
9b63bb88c8
|
@ -325,7 +325,7 @@ int main(int argc, char ** argv)
|
||||||
if (packages) {
|
if (packages) {
|
||||||
instArgs.push_back("--expr");
|
instArgs.push_back("--expr");
|
||||||
std::ostringstream joined;
|
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)
|
for (const auto & i : exprs)
|
||||||
joined << '(' << i << ") ";
|
joined << '(' << i << ") ";
|
||||||
joined << "]; } \"\"";
|
joined << "]; } \"\"";
|
||||||
|
|
Loading…
Reference in a new issue