fetchbzr: support hash attribute

This commit is contained in:
nicoo 2024-09-15 21:55:21 +00:00
parent 1ccd5ba540
commit fb8a85e2bb

View File

@ -1,15 +1,16 @@
{ stdenvNoCC, breezy }:
{ url, rev, sha256 }:
{ lib, stdenvNoCC, breezy }:
lib.fetchers.withNormalizedHash { } (
{ url, rev, outputHash, outputHashAlgo }:
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation {
name = "bzr-export";
builder = ./builder.sh;
nativeBuildInputs = [ breezy ];
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
inherit url rev;
}
}
)