diff options
author | Yureka <yuka@yuka.dev> | 2023-09-25 14:52:33 +0200 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-09-25 19:24:40 +0200 |
commit | 5d20a2b99a586c6611b30b12a684df96f8f95c1c (patch) | |
tree | 0c72c76eb6102d0d9fc7327cd75df662730b78c9 | |
parent | 938bfe28acdd5dd6fa8706d7860a7caf8dad9eb4 (diff) | |
download | nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar.gz nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar.bz2 nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar.lz nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar.xz nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.tar.zst nixpkgs-5d20a2b99a586c6611b30b12a684df96f8f95c1c.zip |
buildPecl: pass hash attr to fetchurl
-rw-r--r-- | pkgs/build-support/php/build-pecl.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/build-support/php/build-pecl.nix b/pkgs/build-support/php/build-pecl.nix index 389447e066f..6f38a668f3a 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: |