Commit 45fc1f18 authored by figsoda's avatar figsoda
Browse files

rustPlatform.fetchCargoTarball: default outputHashAlgo to sha256

parent 3c3d6bed
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -28,7 +28,11 @@ in
} @ args:

let hash_ =
  if args ? hash then { outputHashAlgo = null; outputHash = args.hash; }
  if args ? hash then
    {
      outputHashAlgo = if args.hash == "" then "sha256" else null;
      outputHash = args.hash;
    }
  else if args ? sha256 then { outputHashAlgo = "sha256"; outputHash = args.sha256; }
  else throw "fetchCargoTarball requires a hash for ${name}";
in stdenv.mkDerivation ({