17 nativeBuildInputs ? [ ],
22 url = "https://pecl.php.net/get/${pname}-${version}.tgz";
39 name = "php-${pname}-${version}";
40 extensionName = pname;
47 ] ++ nativeBuildInputs;
48 buildInputs = [ php ] ++ peclDeps ++ buildInputs;
50 makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
55 ${lib.concatMapStringsSep "\n" (
56 dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}"
59 checkPhase = "NO_INTERACTON=yes make test";
61 passthru = passthru // {
62 # Thes flags were introduced for `nix-update` so that it can update
63 # PHP extensions correctly.
64 # See the corresponding PR: https://github.com/Mic92/nix-update/pull/123
65 isPhpExtension = true;
66 updateScript = nix-update-script { };