Merge pull request #238701 from wegank/mavenfod-hash

mavenfod: make mvnHash empty by default
This commit is contained in:
Weijia Wang 2023-06-20 13:30:07 +03:00 committed by GitHub
commit c1b2b245c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,7 @@
, patches ? [ ]
, pname
, version
, mvnSha256 ? "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
, mvnHash ? "sha256-${mvnSha256}"
, mvnHash ? ""
, mvnFetchExtraArgs ? { }
, mvnParameters ? ""
, ...
@ -41,6 +40,7 @@ stdenv.mkDerivation (rec {
# don't do any fixup
dontFixup = true;
outputHashAlgo = if mvnHash != "" then null else "sha256";
outputHashMode = "recursive";
outputHash = mvnHash;
} // mvnFetchExtraArgs);