install: Use base-16 hashes

Issue #2623.

(cherry picked from commit 4ae6e84901)
This commit is contained in:
Eelco Dolstra 2019-01-11 16:30:43 +01:00
parent bbaf865655
commit d7eade3649
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -296,7 +296,7 @@ let
substitute ${./scripts/install.in} $out/install \
${pkgs.lib.concatMapStrings
(system: "--replace '@binaryTarball_${system}@' $(nix hash-file --type sha256 ${binaryTarball.${system}}/*.tar.bz2) ")
(system: "--replace '@binaryTarball_${system}@' $(nix hash-file --base16 --type sha256 ${binaryTarball.${system}}/*.tar.bz2) ")
[ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
} \
--replace '@nixVersion@' ${build.x86_64-linux.src.version}