summary refs log tree commit diff
path: root/pkgs/common-updater/scripts/update-source-version
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2022-07-07 22:59:41 +0200
committerOPNA2608 <christoph.neidahl@gmail.com>2022-07-07 23:01:35 +0200
commit0276d2fcbb41f7a59c00be34949133e97e5b8880 (patch)
tree324f62ab2ea8fcb5506cf0a9966cc5195523c3d9 /pkgs/common-updater/scripts/update-source-version
parentf49fe4a120ac01b6157d91bf1c733319fec21459 (diff)
downloadnixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar.gz
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar.bz2
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar.lz
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar.xz
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.tar.zst
nixpkgs-0276d2fcbb41f7a59c00be34949133e97e5b8880.zip
common-updater-scripts/update-source-version: Add flag required for nix-command
Diffstat (limited to 'pkgs/common-updater/scripts/update-source-version')
-rwxr-xr-xpkgs/common-updater/scripts/update-source-version4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/common-updater/scripts/update-source-version b/pkgs/common-updater/scripts/update-source-version
index 88cf7d459a7..fbeb375fa89 100755
--- a/pkgs/common-updater/scripts/update-source-version
+++ b/pkgs/common-updater/scripts/update-source-version
@@ -196,7 +196,7 @@ tempHash=$(printf '%0*d' "$hashLength" 0)
 if [[ -n "$sri" ]]; then
     # SRI hashes only support base64
     # SRI hashes need to declare the hash type as part of the hash
-    tempHash="$(nix hash to-sri --type "$oldHashAlgo" "$tempHash" 2>/dev/null \
+    tempHash="$(nix --extra-experimental-features nix-command hash to-sri --type "$oldHashAlgo" "$tempHash" 2>/dev/null \
         || nix to-sri --type "$oldHashAlgo" "$tempHash" 2>/dev/null)" \
         || die "Failed to convert hash to SRI representation!"
 fi
@@ -242,7 +242,7 @@ if [[ -z "$newHash" ]]; then
 
     if [[ -n "$sri" ]]; then
         # nix-build preserves the hashing scheme so we can just convert the result to SRI using the old type
-        newHash="$(nix hash to-sri --type "$oldHashAlgo" "$newHash" 2>/dev/null \
+        newHash="$(nix --extra-experimental-features nix-command hash to-sri --type "$oldHashAlgo" "$newHash" 2>/dev/null \
             || nix to-sri --type "$oldHashAlgo" "$newHash" 2>/dev/null)" \
             || die "Failed to convert hash to SRI representation!"
     fi