install: Use base-16 hashes

Issue #2623.
This commit is contained in:
Eelco Dolstra 2019-01-11 16:30:43 +01:00
parent 8ce1986611
commit 4ae6e84901
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 \ substitute ${./scripts/install.in} $out/install \
${pkgs.lib.concatMapStrings ${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" ] [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
} \ } \
--replace '@nixVersion@' ${build.x86_64-linux.src.version} --replace '@nixVersion@' ${build.x86_64-linux.src.version}