btcpayserver: fix update script

The script was broken when nixpkgs-unstable was in NIX_PATH, which
resulted in nix 2.5 being used instead of 2.3.
It now works with nixpkgs-unstable and `nixpkgs-21.*`.
This commit is contained in:
Erik Arvstedt 2021-12-30 15:55:13 +01:00
parent 09930ec7d0
commit fa7999d954
No known key found for this signature in database
GPG key ID: 33312B944DD97846

View file

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils curl jq common-updater-scripts dotnet-sdk_3 git gnupg nix
#!nix-shell -i bash -p coreutils curl jq common-updater-scripts dotnet-sdk_3 git gnupg nixFlakes
set -euo pipefail
# This script uses the following env vars:
@ -17,7 +17,7 @@ scriptDir=$(cd "${BASH_SOURCE[0]%/*}" && pwd)
nixpkgs=$(realpath "$scriptDir"/../../../../..)
evalNixpkgs() {
nix eval --raw "(with import \"$nixpkgs\" {}; $1)"
nix eval --impure --raw --expr "(with import \"$nixpkgs\" {}; $1)"
}
getRepo() {