fetchRepoProject: support hash attribute, wrapping in withnormalizedHash

This commit is contained in:
nicoo 2024-09-15 09:53:12 +00:00
parent ac177dff93
commit 80cafd06e6

View File

@ -1,6 +1,6 @@
{ lib, stdenvNoCC, gitRepo, cacert, copyPathsToStore }:
{ name, manifest, rev ? "HEAD", sha256
lib.fetchers.withNormalizedHash { } (
{ name, manifest, rev ? "HEAD", outputHash, outputHashAlgo
# Optional parameters:
, repoRepoURL ? "", repoRepoRev ? "", referenceDir ? "", manifestName ? ""
, localManifests ? [], createMirror ? false, useArchive ? false
@ -39,9 +39,8 @@ in stdenvNoCC.mkDerivation {
inherit cacert manifest rev repoRepoURL repoRepoRev referenceDir; # TODO
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
preferLocalBuild = true;
enableParallelBuilding = true;
@ -81,3 +80,4 @@ in stdenvNoCC.mkDerivation {
''}
'';
}
)