mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Fix nix-shell shebang scripts if -p is used
This commit is contained in:
parent
147deb236e
commit
bb10010582
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ foreach my $expr (@exprs) {
|
||||||
# If we're in a #! script, interpret filenames relative to the
|
# If we're in a #! script, interpret filenames relative to the
|
||||||
# script.
|
# script.
|
||||||
$expr = dirname(Cwd::abs_path($script)) . "/" . $expr
|
$expr = dirname(Cwd::abs_path($script)) . "/" . $expr
|
||||||
if $inShebang && $expr !~ /^\//;
|
if $inShebang && !$packages && $expr !~ /^\//;
|
||||||
|
|
||||||
# !!! would prefer the perl 5.8.0 pipe open feature here.
|
# !!! would prefer the perl 5.8.0 pipe open feature here.
|
||||||
my $pid = open(DRVPATHS, "-|") || exec "$Nix::Config::binDir/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
|
my $pid = open(DRVPATHS, "-|") || exec "$Nix::Config::binDir/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
|
||||||
|
|
Loading…
Reference in a new issue