You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
471 B
25 lines
471 B
{ stdenv, php, autoreconfHook, fetchurl }: |
|
|
|
{ name |
|
, buildInputs ? [] |
|
, makeFlags ? [] |
|
, src ? fetchurl { |
|
url = "http://pecl.php.net/get/${name}.tgz"; |
|
inherit (args) sha256; |
|
} |
|
, ... |
|
}@args: |
|
|
|
stdenv.mkDerivation (args // { |
|
name = "php-${name}"; |
|
|
|
inherit src; |
|
|
|
buildInputs = [ php autoreconfHook ] ++ buildInputs; |
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags; |
|
|
|
autoreconfPhase = "phpize"; |
|
|
|
preConfigure = "touch unix.h"; |
|
})
|
|
|