diff --git a/pkgs/build-support/fetchbzr/default.nix b/pkgs/build-support/fetchbzr/default.nix index b7db9e9274da..1f6f0f2a788e 100644 --- a/pkgs/build-support/fetchbzr/default.nix +++ b/pkgs/build-support/fetchbzr/default.nix @@ -1,15 +1,16 @@ -{ stdenvNoCC, breezy }: -{ url, rev, sha256 }: +{ lib, stdenvNoCC, breezy }: +lib.fetchers.withNormalizedHash { } ( + { url, rev, outputHash, outputHashAlgo }: -stdenvNoCC.mkDerivation { - name = "bzr-export"; + stdenvNoCC.mkDerivation { + name = "bzr-export"; - builder = ./builder.sh; - nativeBuildInputs = [ breezy ]; + builder = ./builder.sh; + nativeBuildInputs = [ breezy ]; - outputHashAlgo = "sha256"; - outputHashMode = "recursive"; - outputHash = sha256; + inherit outputHash outputHashAlgo; + outputHashMode = "recursive"; - inherit url rev; -} + inherit url rev; + } +)