chore(nix): Replace deprecated command nix-hash usage with nix hash

This commit is contained in:
Ahmad Ansori Palembani 2025-03-08 05:46:37 +07:00
parent fa35a9411b
commit 18a6fb5ade
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -16,7 +16,7 @@ let
mkdir -p /tmp/nix-srisum-unzip-files/$dirname mkdir -p /tmp/nix-srisum-unzip-files/$dirname
unzip -qq -d /tmp/nix-srisum-unzip-files/$dirname /tmp/nix-srisum-unzip-files/$filename unzip -qq -d /tmp/nix-srisum-unzip-files/$dirname /tmp/nix-srisum-unzip-files/$filename
hash=$(nix-hash --to-sri --type sha256 $(nix-hash --type sha256 /tmp/nix-srisum-unzip-files/$dirname)) hash=$(nix hash path /tmp/nix-srisum-unzip-files/$dirname)
echo "''$hash - ''$i" echo "''$hash - ''$i"
done done
''; '';