treewide/php-packages: Drop pkgs from arguments to packages

This commit is contained in:
Elis Hirwing 2021-02-27 11:29:20 +01:00
parent d8fb9d8222
commit 5ad7fb28f6
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
25 changed files with 90 additions and 91 deletions

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "box"; pname = "box";
version = "2.7.5"; version = "2.7.5";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, unzip, lib, php }:
let let
pname = "composer"; pname = "composer";
version = "2.0.11"; version = "2.0.11";
@ -13,17 +13,17 @@ mkDerivation {
dontUnpack = true; dontUnpack = true;
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
install -D $src $out/libexec/composer/composer.phar install -D $src $out/libexec/composer/composer.phar
makeWrapper ${php}/bin/php $out/bin/composer \ makeWrapper ${php}/bin/php $out/bin/composer \
--add-flags "$out/libexec/composer/composer.phar" \ --add-flags "$out/libexec/composer/composer.phar" \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]} --prefix PATH : ${lib.makeBinPath [ unzip ]}
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "Dependency Manager for PHP"; description = "Dependency Manager for PHP";
license = licenses.mit; license = licenses.mit;
homepage = "https://getcomposer.org/"; homepage = "https://getcomposer.org/";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, unzip, lib, php }:
let let
pname = "composer"; pname = "composer";
version = "1.10.15"; version = "1.10.15";
@ -13,17 +13,17 @@ mkDerivation {
dontUnpack = true; dontUnpack = true;
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
install -D $src $out/libexec/composer/composer.phar install -D $src $out/libexec/composer/composer.phar
makeWrapper ${php}/bin/php $out/bin/composer \ makeWrapper ${php}/bin/php $out/bin/composer \
--add-flags "$out/libexec/composer/composer.phar" \ --add-flags "$out/libexec/composer/composer.phar" \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]} --prefix PATH : ${lib.makeBinPath [ unzip ]}
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "Dependency Manager for PHP"; description = "Dependency Manager for PHP";
license = licenses.mit; license = licenses.mit;
homepage = "https://getcomposer.org/"; homepage = "https://getcomposer.org/";

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs, php }: { lib, buildPecl, fetchFromGitHub, writeText, libcouchbase, zlib, php }:
let let
pname = "couchbase"; pname = "couchbase";
version = "2.6.2"; version = "2.6.2";
@ -6,7 +6,7 @@ in
buildPecl { buildPecl {
inherit pname version; inherit pname version;
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "couchbase"; owner = "couchbase";
repo = "php-couchbase"; repo = "php-couchbase";
rev = "v${version}"; rev = "v${version}";
@ -16,12 +16,12 @@ buildPecl {
configureFlags = [ "--with-couchbase" ]; configureFlags = [ "--with-couchbase" ];
broken = lib.versionAtLeast php.version "8.0"; broken = lib.versionAtLeast php.version "8.0";
buildInputs = with pkgs; [ libcouchbase zlib ]; buildInputs = [ libcouchbase zlib ];
internalDeps = [] ++ lib.optionals (lib.versionOlder php.version "8.0") [ php.extensions.json ]; internalDeps = [] ++ lib.optionals (lib.versionOlder php.version "8.0") [ php.extensions.json ];
peclDeps = [ php.extensions.igbinary ]; peclDeps = [ php.extensions.igbinary ];
patches = [ patches = [
(pkgs.writeText "php-couchbase.patch" '' (writeText "php-couchbase.patch" ''
--- a/config.m4 --- a/config.m4
+++ b/config.m4 +++ b/config.m4
@@ -9,7 +9,7 @@ if test "$PHP_COUCHBASE" != "no"; then @@ -9,7 +9,7 @@ if test "$PHP_COUCHBASE" != "no"; then
@ -29,7 +29,7 @@ buildPecl {
else else
AC_MSG_CHECKING(for libcouchbase in default path) AC_MSG_CHECKING(for libcouchbase in default path)
- for i in /usr/local /usr; do - for i in /usr/local /usr; do
+ for i in ${pkgs.libcouchbase}; do + for i in ${libcouchbase}; do
if test -r $i/include/libcouchbase/couchbase.h; then if test -r $i/include/libcouchbase/couchbase.h; then
LIBCOUCHBASE_DIR=$i LIBCOUCHBASE_DIR=$i
AC_MSG_RESULT(found in $i) AC_MSG_RESULT(found in $i)

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs, php }: { buildPecl, lib, php, pkg-config, openssl, libevent }:
buildPecl { buildPecl {
pname = "event"; pname = "event";
@ -6,7 +6,7 @@ buildPecl {
sha256 = "1ws4l014z52vb23xbsfj6viwkf7fmh462af639xgbp0n6syf77dq"; sha256 = "1ws4l014z52vb23xbsfj6viwkf7fmh462af639xgbp0n6syf77dq";
configureFlags = [ configureFlags = [
"--with-event-libevent-dir=${pkgs.libevent.dev}" "--with-event-libevent-dir=${libevent.dev}"
"--with-event-core" "--with-event-core"
"--with-event-extra" "--with-event-extra"
"--with-event-pthreads" "--with-event-pthreads"
@ -18,11 +18,11 @@ buildPecl {
':' ':'
''; '';
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = with pkgs; [ openssl libevent ]; buildInputs = [ openssl libevent ];
internalDeps = [ php.extensions.sockets ]; internalDeps = [ php.extensions.sockets ];
meta = with pkgs.lib; { meta = with lib; {
description = '' description = ''
This is an extension to efficiently schedule I/O, time and signal based This is an extension to efficiently schedule I/O, time and signal based
events using the best I/O notification mechanism available for specific platform. events using the best I/O notification mechanism available for specific platform.

View File

@ -1,4 +1,4 @@
{ buildPecl, fetchpatch, lib, pkgs, pcre' }: { buildPecl, fetchpatch, lib, imagemagick7, pkg-config, pcre' }:
buildPecl { buildPecl {
pname = "imagick"; pname = "imagick";
@ -19,8 +19,8 @@ buildPecl {
}) })
]; ];
configureFlags = [ "--with-imagick=${pkgs.imagemagick7.dev}" ]; configureFlags = [ "--with-imagick=${imagemagick7.dev}" ];
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ pcre' ]; buildInputs = [ pcre' ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs }: { buildPecl, lib, fetchFromGitHub, libmaxminddb }:
let let
pname = "maxminddb"; pname = "maxminddb";
version = "1.10.0"; version = "1.10.0";
@ -6,17 +6,17 @@ in
buildPecl { buildPecl {
inherit pname version; inherit pname version;
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "maxmind"; owner = "maxmind";
repo = "MaxMind-DB-Reader-php"; repo = "MaxMind-DB-Reader-php";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-2SnajDdO5uAYcuVpEbOuFlZzMxwo/EqFtUSr9XxT0KQ="; sha256 = "sha256-2SnajDdO5uAYcuVpEbOuFlZzMxwo/EqFtUSr9XxT0KQ=";
}; };
buildInputs = [ pkgs.libmaxminddb ]; buildInputs = [ libmaxminddb ];
sourceRoot = "source/ext"; sourceRoot = "source/ext";
meta = with pkgs.lib; { meta = with lib; {
description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader"; description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members; maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members;

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, fetchgit, php, pkgs }: { buildPecl, lib, fetchgit, php, cyrus_sasl, zlib, pkg-config, libmemcached }:
let let
pname = "memcached"; pname = "memcached";
version = "3.1.5"; version = "3.1.5";
@ -19,12 +19,12 @@ buildPecl {
]; ];
configureFlags = [ configureFlags = [
"--with-zlib-dir=${pkgs.zlib.dev}" "--with-zlib-dir=${zlib.dev}"
"--with-libmemcached-dir=${pkgs.libmemcached}" "--with-libmemcached-dir=${libmemcached}"
]; ];
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = with pkgs; [ cyrus_sasl zlib ]; buildInputs = [ cyrus_sasl zlib ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }

View File

@ -1,4 +1,5 @@
{ buildPecl, lib, pkgs, pcre' }: { stdenv, buildPecl, lib, pcre', pkg-config, cyrus_sasl, icu64
, openssl, snappy, zlib, darwin }:
buildPecl { buildPecl {
pname = "mongodb"; pname = "mongodb";
@ -6,15 +7,15 @@ buildPecl {
version = "1.9.0"; version = "1.9.0";
sha256 = "16mbw3p80qxsj86nmjbfch8wv6jaq8wbz4rlpmixvhj9nwbp37hs"; sha256 = "16mbw3p80qxsj86nmjbfch8wv6jaq8wbz4rlpmixvhj9nwbp37hs";
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = with pkgs; [ buildInputs = [
cyrus_sasl cyrus_sasl
icu64 icu64
openssl openssl
snappy snappy
zlib zlib
pcre' pcre'
] ++ lib.optional (pkgs.stdenv.isDarwin) pkgs.darwin.apple_sdk.frameworks.Security; ] ++ lib.optionals (stdenv.isDarwin) darwin.apple_sdk.frameworks.Security;
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }

View File

@ -1,14 +1,14 @@
{ buildPecl, lib, pkgs, version, sha256 }: { buildPecl, lib, version, sha256, oracle-instantclient }:
buildPecl { buildPecl {
pname = "oci8"; pname = "oci8";
inherit version sha256; inherit version sha256;
buildInputs = [ pkgs.oracle-instantclient ]; buildInputs = [ oracle-instantclient ];
configureFlags = [ "--with-oci8=shared,instantclient,${pkgs.oracle-instantclient.lib}/lib" ]; configureFlags = [ "--with-oci8=shared,instantclient,${oracle-instantclient.lib}/lib" ];
postPatch = '' postPatch = ''
sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${pkgs.oracle-instantclient.dev}/include"|' config.m4 sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${oracle-instantclient.dev}/include"|' config.m4
''; '';
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs }: { buildPecl, fetchFromGitHub, lib, pkg-config, dlib }:
let let
pname = "pdlib"; pname = "pdlib";
version = "1.0.2"; version = "1.0.2";
@ -6,15 +6,15 @@ in
buildPecl { buildPecl {
inherit pname version; inherit pname version;
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "goodspb"; owner = "goodspb";
repo = "pdlib"; repo = "pdlib";
rev = "v${version}"; rev = "v${version}";
sha256 = "0qnmqwlw5vb2rvliap4iz9val6mal4qqixcw69pwskdw5jka6v5i"; sha256 = "0qnmqwlw5vb2rvliap4iz9val6mal4qqixcw69pwskdw5jka6v5i";
}; };
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ (pkgs.dlib.override { guiSupport = true; }) ]; buildInputs = [ (dlib.override { guiSupport = true; }) ];
meta = with lib; { meta = with lib; {
description = "A PHP extension for Dlib"; description = "A PHP extension for Dlib";

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs, php }: { stdenv, buildPecl, lib, libiconv, unixODBC, php }:
buildPecl { buildPecl {
pname = "pdo_sqlsrv"; pname = "pdo_sqlsrv";
@ -8,7 +8,7 @@ buildPecl {
internalDeps = [ php.extensions.pdo ]; internalDeps = [ php.extensions.pdo ];
buildInputs = [ pkgs.unixODBC ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.libiconv ]; buildInputs = [ unixODBC ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "php-cs-fixer"; pname = "php-cs-fixer";
version = "2.18.2"; version = "2.18.2";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar" --add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "A tool to automatically fix PHP coding standards issues"; description = "A tool to automatically fix PHP coding standards issues";
license = licenses.mit; license = licenses.mit;
homepage = "http://cs.sensiolabs.org/"; homepage = "http://cs.sensiolabs.org/";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchFromGitHub, pkgs, lib, php }: { mkDerivation, fetchFromGitHub, makeWrapper, lib, php }:
let let
pname = "php-parallel-lint"; pname = "php-parallel-lint";
version = "1.0.0"; version = "1.0.0";
@ -14,7 +14,7 @@ mkDerivation {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.makeWrapper makeWrapper
php.packages.composer php.packages.composer
php.packages.box php.packages.box
]; ];
@ -31,7 +31,7 @@ mkDerivation {
--add-flags "$out/libexec/php-parallel-lint/php-parallel-lint.phar" --add-flags "$out/libexec/php-parallel-lint/php-parallel-lint.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "Tool to check syntax of PHP files faster than serial check with fancier output"; description = "Tool to check syntax of PHP files faster than serial check with fancier output";
license = licenses.bsd2; license = licenses.bsd2;
homepage = "https://github.com/JakubOnderka/PHP-Parallel-Lint"; homepage = "https://github.com/JakubOnderka/PHP-Parallel-Lint";

View File

@ -1,4 +1,4 @@
{ buildPecl, fetchurl, lib, pkgs }: { buildPecl, fetchurl, lib, libxl }:
let let
pname = "php_excel"; pname = "php_excel";
phpVersion = "php7"; phpVersion = "php7";
@ -12,12 +12,12 @@ buildPecl {
sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n"; sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n";
}; };
buildInputs = with pkgs; [ libxl ]; buildInputs = [ libxl ];
configureFlags = [ configureFlags = [
"--with-excel" "--with-excel"
"--with-libxl-incdir=${pkgs.libxl}/include_c" "--with-libxl-incdir=${libxl}/include_c"
"--with-libxl-libdir=${pkgs.libxl}/lib" "--with-libxl-libdir=${libxl}/lib"
]; ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, lib, php, makeWrapper }:
let let
pname = "phpcbf"; pname = "phpcbf";
version = "3.5.8"; version = "3.5.8";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/phpcbf/phpcbf.phar" --add-flags "$out/libexec/phpcbf/phpcbf.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "PHP coding standard beautifier and fixer"; description = "PHP coding standard beautifier and fixer";
license = licenses.bsd3; license = licenses.bsd3;
homepage = "https://squizlabs.github.io/PHP_CodeSniffer/"; homepage = "https://squizlabs.github.io/PHP_CodeSniffer/";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "phpcs"; pname = "phpcs";
version = "3.5.8"; version = "3.5.8";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/phpcs/phpcs.phar" --add-flags "$out/libexec/phpcs/phpcs.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "PHP coding standard tool"; description = "PHP coding standard tool";
license = licenses.bsd3; license = licenses.bsd3;
homepage = "https://squizlabs.github.io/PHP_CodeSniffer/"; homepage = "https://squizlabs.github.io/PHP_CodeSniffer/";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "phpmd"; pname = "phpmd";
version = "2.8.2"; version = "2.8.2";
@ -8,13 +8,13 @@ in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = pkgs.fetchurl { src = fetchurl {
url = "https://github.com/phpmd/phpmd/releases/download/${version}/phpmd.phar"; url = "https://github.com/phpmd/phpmd/releases/download/${version}/phpmd.phar";
sha256 = "1i8qgzxniw5d8zjpypalm384y7qfczapfq70xmg129laq6xiqlqb"; sha256 = "1i8qgzxniw5d8zjpypalm384y7qfczapfq70xmg129laq6xiqlqb";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -23,7 +23,7 @@ mkDerivation {
--add-flags "$out/libexec/phpmd/phpmd.phar" --add-flags "$out/libexec/phpmd/phpmd.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "PHP code quality analyzer"; description = "PHP code quality analyzer";
license = licenses.bsd3; license = licenses.bsd3;
homepage = "https://phpmd.org/"; homepage = "https://phpmd.org/";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "phpstan"; pname = "phpstan";
version = "0.12.78"; version = "0.12.78";
@ -6,13 +6,13 @@ in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = pkgs.fetchurl { src = fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar"; url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "sha256-YPCh6HAVuFf2rJhUj/uzfqkWKN+Jd2iPfugSiTh65zc="; sha256 = "sha256-YPCh6HAVuFf2rJhUj/uzfqkWKN+Jd2iPfugSiTh65zc=";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/phpstan/phpstan.phar" --add-flags "$out/libexec/phpstan/phpstan.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "PHP Static Analysis Tool"; description = "PHP Static Analysis Tool";
longDescription = '' longDescription = ''
PHPStan focuses on finding errors in your code without actually PHPStan focuses on finding errors in your code without actually

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "psalm"; pname = "psalm";
version = "4.6.1"; version = "4.6.1";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/psalm/psalm.phar" --add-flags "$out/libexec/psalm/psalm.phar"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "A static analysis tool for finding errors in PHP applications"; description = "A static analysis tool for finding errors in PHP applications";
license = licenses.mit; license = licenses.mit;
homepage = "https://github.com/vimeo/psalm"; homepage = "https://github.com/vimeo/psalm";

View File

@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "psysh"; pname = "psysh";
version = "0.10.4"; version = "0.10.4";
@ -12,7 +12,7 @@ mkDerivation {
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,7 +21,7 @@ mkDerivation {
wrapProgram $out/bin/psysh --prefix PATH : "${lib.makeBinPath [ php ]}" wrapProgram $out/bin/psysh --prefix PATH : "${lib.makeBinPath [ php ]}"
''; '';
meta = with pkgs.lib; { meta = with lib; {
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP."; description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP.";
license = licenses.mit; license = licenses.mit;
homepage = "https://psysh.org/"; homepage = "https://psysh.org/";

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs, pcre' }: { buildPecl, lib, rdkafka, pcre' }:
buildPecl { buildPecl {
pname = "rdkafka"; pname = "rdkafka";
@ -6,11 +6,11 @@ buildPecl {
version = "5.0.0"; version = "5.0.0";
sha256 = "sha256-Qy+6rkPczhdxFbDhcuzmUTLMPUXYZ0HaheDBhkh4FXs="; sha256 = "sha256-Qy+6rkPczhdxFbDhcuzmUTLMPUXYZ0HaheDBhkh4FXs=";
buildInputs = [ pkgs.rdkafka pcre' ]; buildInputs = [ rdkafka pcre' ];
postPhpize = '' postPhpize = ''
substituteInPlace configure \ substituteInPlace configure \
--replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${pkgs.rdkafka}' --replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${rdkafka}'
''; '';
meta = with lib; { meta = with lib; {

View File

@ -1,14 +1,14 @@
{ buildPecl, lib, pkgs }: { buildPecl, lib, samba, pkg-config }:
buildPecl { buildPecl {
pname = "smbclient"; pname = "smbclient";
version = "1.0.5"; version = "1.0.5";
sha256 = "sha256-cNvTa1qzYrlhuX4oNehXt+XKqmqfonyomW/usQdQQO0="; sha256 = "sha256-cNvTa1qzYrlhuX4oNehXt+XKqmqfonyomW/usQdQQO0=";
# TODO: remove this when upstream merges a fix - https://github.com/eduardok/libsmbclient-php/pull/66 # TODO: remove this when upstream merges a fix - https://github.com/eduardok/libsmbclient-php/pull/66
LIBSMBCLIENT_INCDIR = "${pkgs.samba.dev}/include/samba-4.0"; LIBSMBCLIENT_INCDIR = "${samba.dev}/include/samba-4.0";
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ pkgs.samba ]; buildInputs = [ samba ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs }: { stdenv, buildPecl, lib, unixODBC, libiconv }:
buildPecl { buildPecl {
pname = "sqlsrv"; pname = "sqlsrv";
@ -7,10 +7,8 @@ buildPecl {
sha256 = "1css440b4qrbblmcswd5wdr2v1rjxlj2iicbmvjq9fg81028w40a"; sha256 = "1css440b4qrbblmcswd5wdr2v1rjxlj2iicbmvjq9fg81028w40a";
buildInputs = [ buildInputs = [
pkgs.unixODBC unixODBC
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
pkgs.libiconv
];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs }: { buildPecl, lib, pkg-config, libyaml }:
buildPecl { buildPecl {
pname = "yaml"; pname = "yaml";
@ -6,9 +6,9 @@ buildPecl {
version = "2.2.1"; version = "2.2.1";
sha256 = "sha256-4XrQTnUuJf0Jm93S350m3+8YPI0AxBebydei4cl9eBk="; sha256 = "sha256-4XrQTnUuJf0Jm93S350m3+8YPI0AxBebydei4cl9eBk=";
configureFlags = [ "--with-yaml=${pkgs.libyaml}" ]; configureFlags = [ "--with-yaml=${libyaml}" ];
nativeBuildInputs = [ pkgs.pkg-config ]; nativeBuildInputs = [ pkg-config ];
meta.maintainers = lib.teams.php.members; meta.maintainers = lib.teams.php.members;
} }