phpExtensions.gnupg: 1.5.1 -> 1.5.3 (#417951)

This commit is contained in:
Pol Dellaiera
2025-06-19 14:57:38 +02:00
committed by GitHub
@@ -9,7 +9,7 @@
}:
let
version = "1.5.1";
version = "1.5.3";
in
buildPecl {
inherit version;
@@ -20,7 +20,7 @@ buildPecl {
repo = "php-gnupg";
rev = "gnupg-${version}";
fetchSubmodules = true;
hash = "sha256-kEc0883sYgmAf1mkH0zRjHzUASnZgQvdYE6VzT5X2RI=";
hash = "sha256-F9Rq+mmUhvXfIuoifqRM/ZIMYszCF93cvv13Vt/A5Mo=";
};
buildInputs = [ gpgme ];
@@ -28,19 +28,19 @@ buildPecl {
postPhpize = ''
substituteInPlace configure \
--replace '/usr/bin/file' '${file}/bin/file' \
--replace 'SEARCH_PATH="/usr/local /usr /opt"' 'SEARCH_PATH="${gpgme.dev}"'
--replace-fail '/usr/bin/file' '${file}/bin/file' \
--replace-fail 'SEARCH_PATH="/usr/local /usr /opt /opt/homebrew"' 'SEARCH_PATH="${gpgme.dev}"'
'';
postConfigure = ''
substituteInPlace Makefile \
--replace 'run-tests.php' 'run-tests.php -q --offline'
--replace-fail '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 (lib.stringLength "${gnupg}/bin/gpg")})'
--replace-fail '/usr/bin/gpg' '${gnupg}/bin/gpg' \
--replace-fail 'string(12)' 'string(${toString (lib.stringLength "${gnupg}/bin/gpg")})'
substituteInPlace tests/gnupg_oo_init_file_name.phpt \
--replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
--replace 'string(12)' 'string(${toString (lib.stringLength "${gnupg}/bin/gpg")})'
--replace-fail '/usr/bin/gpg' '${gnupg}/bin/gpg' \
--replace-fail 'string(12)' 'string(${toString (lib.stringLength "${gnupg}/bin/gpg")})'
'';
doCheck = true;