diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-29 14:07:39 +0100 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-29 18:19:12 +0100 |
commit | 8cd511dde1f7c19ebd9d1d075b013487aba686fd (patch) | |
tree | a80993fa24e35040f2b26be97fe574006e7912cf /pkgs/build-support/build-pecl.nix | |
parent | 449d97e1d7940a293cccb33d1513adac7d6e833c (diff) | |
download | nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar.gz nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar.bz2 nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar.lz nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar.xz nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.tar.zst nixpkgs-8cd511dde1f7c19ebd9d1d075b013487aba686fd.zip |
feat: add `passthru` flags in PHP extension builder
So they can be handled correctly by `nix-update` tool
Diffstat (limited to 'pkgs/build-support/build-pecl.nix')
-rw-r--r-- | pkgs/build-support/build-pecl.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix index d30a073d2fb..389447e066f 100644 --- a/pkgs/build-support/build-pecl.nix +++ b/pkgs/build-support/build-pecl.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, php, autoreconfHook, fetchurl, re2c }: +{ stdenv, lib, php, autoreconfHook, fetchurl, re2c, nix-update-script }: { pname , version @@ -12,6 +12,7 @@ url = "https://pecl.php.net/get/${pname}-${version}.tgz"; inherit (args) sha256; } +, passthru ? { } , ... }@args: @@ -34,4 +35,12 @@ stdenv.mkDerivation (args // { internalDeps} ''; checkPhase = "NO_INTERACTON=yes make test"; + + passthru = passthru // { + # Thes flags were introduced for `nix-update` so that it can update + # PHP extensions correctly. + # See the corresponding PR: https://github.com/Mic92/nix-update/pull/123 + isPhpExtension = true; + updateScript = nix-update-script {}; + }; }) |