mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
Merge pull request #147175 from taikx4/php-gnupg
phpExtensions.gnupg: init at 1.5.0
This commit is contained in:
commit
38116953c2
@ -11307,6 +11307,16 @@
|
||||
githubId = 321799;
|
||||
name = "Paul Colomiets";
|
||||
};
|
||||
taikx4 = {
|
||||
email = "taikx4@taikx4szlaj2rsdupcwabg35inbny4jk322ngeb7qwbbhd5i55nf5yyd.onion";
|
||||
github = "taikx4";
|
||||
githubId = 94917129;
|
||||
name = "taikx4";
|
||||
keys = [{
|
||||
longkeyid = "ed25519/0xCCD52C7B37BB837E";
|
||||
fingerprint = "6B02 8103 C4E5 F68C D77C 9E54 CCD5 2C7B 37BB 837E";
|
||||
}];
|
||||
};
|
||||
takagiy = {
|
||||
email = "takagiy.4dev@gmail.com";
|
||||
github = "takagiy";
|
||||
|
37
pkgs/development/php-packages/gnupg/default.nix
Normal file
37
pkgs/development/php-packages/gnupg/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ buildPecl, lib, gpgme, file, gnupg }:
|
||||
|
||||
buildPecl {
|
||||
pname = "gnupg";
|
||||
|
||||
version = "1.5.0";
|
||||
sha256 = "0r0akrjjf9i460z11llybdr6sg2rlcz38nwfy0yqz443ljdggxfl";
|
||||
|
||||
buildInputs = [ gpgme ];
|
||||
checkInputs = [ gnupg ];
|
||||
|
||||
postPhpize = ''
|
||||
substituteInPlace configure \
|
||||
--replace '/usr/bin/file' '${file}/bin/file' \
|
||||
--replace 'SEARCH_PATH="/usr/local /usr /opt"' 'SEARCH_PATH="${gpgme.dev}"'
|
||||
'';
|
||||
|
||||
postConfigure = with lib; ''
|
||||
substituteInPlace Makefile \
|
||||
--replace 'run-tests.php' 'run-tests.php -q --offline'
|
||||
substituteInPlace tests/gnupg_res_init_file_name.phpt \
|
||||
--replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
|
||||
--replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
|
||||
substituteInPlace tests/gnupg_oo_init_file_name.phpt \
|
||||
--replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
|
||||
--replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "PHP wrapper for GpgME library that provides access to GnuPG";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://pecl.php.net/package/gnupg";
|
||||
maintainers = with maintainers; [ taikx4 ] ++ teams.php.members;
|
||||
};
|
||||
}
|
@ -173,6 +173,8 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||
|
||||
event = callPackage ../development/php-packages/event { };
|
||||
|
||||
gnupg = callPackage ../development/php-packages/gnupg { };
|
||||
|
||||
igbinary = callPackage ../development/php-packages/igbinary { };
|
||||
|
||||
imagick = callPackage ../development/php-packages/imagick { };
|
||||
|
Loading…
Reference in New Issue
Block a user