mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +01:00
nix-shell -p: Use runCommandCC
This restores pre-17.03 behaviour by making gcc available.
(Ported from 9b63bb88c8)
This commit is contained in:
parent
3c52567b3e
commit
76431e0a26
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ die "$0: ‘-p’ and ‘-E’ are mutually exclusive\n" if $packages && $fromAr
|
||||||
if ($packages) {
|
if ($packages) {
|
||||||
push @instArgs, "--expr";
|
push @instArgs, "--expr";
|
||||||
@exprs = (
|
@exprs = (
|
||||||
'with import <nixpkgs> { }; runCommand "shell" { buildInputs = [ '
|
'with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ '
|
||||||
. (join " ", map { "($_)" } @exprs) . ']; } ""');
|
. (join " ", map { "($_)" } @exprs) . ']; } ""');
|
||||||
} elsif (!$fromArgs) {
|
} elsif (!$fromArgs) {
|
||||||
@exprs = ("shell.nix") if scalar @exprs == 0 && $runEnv && -e "shell.nix";
|
@exprs = ("shell.nix") if scalar @exprs == 0 && $runEnv && -e "shell.nix";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue