mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
fetchdarcs: support hash
attribute
This commit is contained in:
parent
8af38be358
commit
4b8644b7a6
@ -1,21 +1,23 @@
|
|||||||
{stdenvNoCC, darcs, cacert, lib}:
|
{stdenvNoCC, darcs, cacert, lib}:
|
||||||
|
|
||||||
lib.makeOverridable (
|
lib.makeOverridable (
|
||||||
{ url
|
lib.fetchers.withNormalizedHash { } (
|
||||||
, rev ? null
|
{ url
|
||||||
, context ? null
|
, rev ? null
|
||||||
, sha256 ? ""
|
, context ? null
|
||||||
, name ? "fetchdarcs"
|
, outputHash ? lib.fakeHash
|
||||||
}:
|
, outputHashAlgo ? null
|
||||||
|
, name ? "fetchdarcs"
|
||||||
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
nativeBuildInputs = [cacert darcs];
|
nativeBuildInputs = [cacert darcs];
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
inherit outputHash outputHashAlgo;
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = sha256;
|
|
||||||
|
|
||||||
inherit url rev context name;
|
inherit url rev context name;
|
||||||
}
|
}
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user