fetchdarcs: support hash attribute

This commit is contained in:
nicoo 2024-09-15 22:24:10 +00:00
parent 8af38be358
commit 4b8644b7a6

View File

@ -1,21 +1,23 @@
{stdenvNoCC, darcs, cacert, lib}:
lib.makeOverridable (
{ url
, rev ? null
, context ? null
, sha256 ? ""
, name ? "fetchdarcs"
}:
lib.fetchers.withNormalizedHash { } (
{ url
, rev ? null
, context ? null
, outputHash ? lib.fakeHash
, outputHashAlgo ? null
, name ? "fetchdarcs"
}:
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation {
builder = ./builder.sh;
nativeBuildInputs = [cacert darcs];
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
inherit url rev context name;
}
}
)
)