fetchdarcs: support hash
attribute
This commit is contained in:
parent
8af38be358
commit
4b8644b7a6
@ -1,10 +1,12 @@
|
||||
{stdenvNoCC, darcs, cacert, lib}:
|
||||
|
||||
lib.makeOverridable (
|
||||
lib.fetchers.withNormalizedHash { } (
|
||||
{ url
|
||||
, rev ? null
|
||||
, context ? null
|
||||
, sha256 ? ""
|
||||
, outputHash ? lib.fakeHash
|
||||
, outputHashAlgo ? null
|
||||
, name ? "fetchdarcs"
|
||||
}:
|
||||
|
||||
@ -12,10 +14,10 @@ stdenvNoCC.mkDerivation {
|
||||
builder = ./builder.sh;
|
||||
nativeBuildInputs = [cacert darcs];
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
inherit outputHash outputHashAlgo;
|
||||
outputHashMode = "recursive";
|
||||
outputHash = sha256;
|
||||
|
||||
inherit url rev context name;
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user