git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #147175 from taikx4/php-gnupg

phpExtensions.gnupg: init at 1.5.0

commit38116953c2e19e3df828b9b6e2dc7d47a99b57ce authorElis Hirwing <elis@hirwing.se> dateThu 25 Nov 2021, 08:15 (5 years ago) parentfa0945d97e808f
3 files changed+49
maintainers/maintainer-list.nix+10 pkgs/development/php-packages/gnupg/default.nix+37 pkgs/top-level/php-packages.nix+2
maintainers/maintainer-list.nix+10
@@ -11307,6 +11307,16 @@
1130711307 githubId = 321799;
1130811308 name = "Paul Colomiets";
1130911309 };
11310+ taikx4 = {
11311+ email = "taikx4@taikx4szlaj2rsdupcwabg35inbny4jk322ngeb7qwbbhd5i55nf5yyd.onion";
11312+ github = "taikx4";
11313+ githubId = 94917129;
11314+ name = "taikx4";
11315+ keys = [{
11316+ longkeyid = "ed25519/0xCCD52C7B37BB837E";
11317+ fingerprint = "6B02 8103 C4E5 F68C D77C 9E54 CCD5 2C7B 37BB 837E";
11318+ }];
11319+ };
1131011320 takagiy = {
1131111321 email = "takagiy.4dev@gmail.com";
1131211322 github = "takagiy";
pkgs/development/php-packages/gnupg/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ buildPecl, lib, gpgme, file, gnupg }:
2+
3+buildPecl {
4+ pname = "gnupg";
5+
6+ version = "1.5.0";
7+ sha256 = "0r0akrjjf9i460z11llybdr6sg2rlcz38nwfy0yqz443ljdggxfl";
8+
9+ buildInputs = [ gpgme ];
10+ checkInputs = [ gnupg ];
11+
12+ postPhpize = ''
13+ substituteInPlace configure \
14+ --replace '/usr/bin/file' '${file}/bin/file' \
15+ --replace 'SEARCH_PATH="/usr/local /usr /opt"' 'SEARCH_PATH="${gpgme.dev}"'
16+ '';
17+
18+ postConfigure = with lib; ''
19+ substituteInPlace Makefile \
20+ --replace 'run-tests.php' 'run-tests.php -q --offline'
21+ substituteInPlace tests/gnupg_res_init_file_name.phpt \
22+ --replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
23+ --replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
24+ substituteInPlace tests/gnupg_oo_init_file_name.phpt \
25+ --replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
26+ --replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
27+ '';
28+
29+ doCheck = true;
30+
31+ meta = with lib; {
32+ description = "PHP wrapper for GpgME library that provides access to GnuPG";
33+ license = licenses.bsd3;
34+ homepage = "https://pecl.php.net/package/gnupg";
35+ maintainers = with maintainers; [ taikx4 ] ++ teams.php.members;
36+ };
37+}
pkgs/top-level/php-packages.nix+2
@@ -173,6 +173,8 @@ lib.makeScope pkgs.newScope (self: with self; {
173173
174174 event = callPackage ../development/php-packages/event { };
175175
176+ gnupg = callPackage ../development/php-packages/gnupg { };
177+
176178 igbinary = callPackage ../development/php-packages/igbinary { };
177179
178180 imagick = callPackage ../development/php-packages/imagick { };