From 5d20a2b99a586c6611b30b12a684df96f8f95c1c Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 25 Sep 2023 14:52:33 +0200 Subject: [PATCH] buildPecl: pass hash attr to fetchurl --- pkgs/build-support/php/build-pecl.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/php/build-pecl.nix b/pkgs/build-support/php/build-pecl.nix index 389447e066fa..6f38a668f3a3 100644 --- a/pkgs/build-support/php/build-pecl.nix +++ b/pkgs/build-support/php/build-pecl.nix @@ -8,10 +8,9 @@ , nativeBuildInputs ? [ ] , postPhpize ? "" , makeFlags ? [ ] -, src ? fetchurl { +, src ? fetchurl ({ url = "https://pecl.php.net/get/${pname}-${version}.tgz"; - inherit (args) sha256; - } + } // lib.filterAttrs (attrName: _: lib.elem attrName [ "sha256" "hash" ]) args) , passthru ? { } , ... }@args: