We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115881f commit 6480502Copy full SHA for 6480502
mongodb.nix
@@ -57,11 +57,13 @@ let
57
(mirror: ''
58
echo "Trying to download from ${mirror}${buildDownloadUrl system version}"
59
SSL_CERT_FILE="${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ${pkgs.curl}/bin/curl -o $out ${mirror}${buildDownloadUrl system version} || true
60
- hash=$(${pkgs.busybox}/bin/busybox sha256sum $out | ${pkgs.gawk}/bin/awk '{print $1}')
+ hash=$(${pkgs.nix}/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes hash file $out --type sha256)
61
+ echo "Got hash $hash , expect ${expectedHash}"
62
if [ "$hash" == "${expectedHash}" ]; then
63
echo "Download success"
64
exit 0
65
fi
66
+ exit 1
67
'')
68
mirrors);
69
outputHashMode = "flat";
0 commit comments