bundlerUpdateScript: use Nix 2.3

The script assumes that nix(1) can be used without any flags which
is no longer the case. We can easily use Nix 2.3 as a workaround
until someone else musters the willpower to adjust this script for
Nix 2.11.
This commit is contained in:
sternenseemann 2022-11-29 23:25:42 +01:00
parent 8db42896f1
commit 38ffd641e0

View File

@ -1,11 +1,11 @@
{ runtimeShell, lib, writeScript, bundix, bundler, bundler-audit, coreutils, git, nix }: { runtimeShell, lib, writeScript, bundix, bundler, bundler-audit, coreutils, git, nix_2_3 }:
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 ]} PATH=${lib.makeBinPath [ bundler bundler-audit bundix coreutils git nix_2_3 ]}
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail