fetchcvs: support hash attribute

This commit is contained in:
nicoo 2024-09-15 22:02:31 +00:00
parent a7013f2fc3
commit ef232d59ac

View File

@ -6,17 +6,18 @@
{stdenvNoCC, cvs, openssh, lib}:
lib.makeOverridable (
{cvsRoot, module, tag ? null, date ? null, sha256}:
lib.fetchers.withNormalizedHash { } (
{cvsRoot, module, tag ? null, date ? null, outputHash, outputHashAlgo}:
stdenvNoCC.mkDerivation {
name = "cvs-export";
builder = ./builder.sh;
nativeBuildInputs = [cvs openssh];
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
inherit cvsRoot module sha256 tag date;
inherit cvsRoot module tag date;
}
)
)