From fa7999d954bcc7d16a72196238466f9a962921d0 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 30 Dec 2021 15:55:13 +0100 Subject: 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.*`. --- pkgs/applications/blockchains/nbxplorer/util/update-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/blockchains/nbxplorer/util/update-common.sh b/pkgs/applications/blockchains/nbxplorer/util/update-common.sh index ed507622240..8899bdd181d 100755 --- a/pkgs/applications/blockchains/nbxplorer/util/update-common.sh +++ b/pkgs/applications/blockchains/nbxplorer/util/update-common.sh @@ -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() { -- cgit 1.4.1