bundlerUpdateScript: Fix evaluation with allowAliases = false
Reverts 38ffd641e0
This commit is contained in:
parent
0c99bc3965
commit
42a68e6a36
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
{ runtimeShell, lib, writeScript, bundix, bundler, bundler-audit, coreutils, git, nix_2_3 }:
|
{ runtimeShell, lib, writeScript, bundix, bundler, bundler-audit, coreutils, git, nix }:
|
||||||
|
|
||||||
attrPath:
|
attrPath:
|
||||||
|
|
||||||
let
|
let
|
||||||
updateScript = writeScript "bundler-update-script" ''
|
updateScript = writeScript "bundler-update-script" ''
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
PATH=${lib.makeBinPath [ bundler bundler-audit bundix coreutils git nix_2_3 ]}
|
PATH=${lib.makeBinPath [ bundler bundler-audit bundix coreutils git nix ]}
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -13,7 +13,7 @@ let
|
||||||
attrPath=$1
|
attrPath=$1
|
||||||
|
|
||||||
toplevel=$(git rev-parse --show-toplevel)
|
toplevel=$(git rev-parse --show-toplevel)
|
||||||
position=$(nix eval -f "$toplevel" --raw "$attrPath.meta.position")
|
position=$(nix --extra-experimental-features nix-command eval -f "$toplevel" --raw "$attrPath.meta.position")
|
||||||
gemdir=$(dirname "$position")
|
gemdir=$(dirname "$position")
|
||||||
|
|
||||||
cd "$gemdir"
|
cd "$gemdir"
|
||||||
|
|
Loading…
Reference in a new issue