php.extensions.gnupg: update src attribute

So it can be automatically updated with `nix-update`
This commit is contained in:
Pol Dellaiera 2022-12-27 22:21:14 +01:00
parent 4ff2402e2a
commit e8d9e7e908
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -1,10 +1,18 @@
{ buildPecl, lib, gpgme, file, gnupg, php }:
{ buildPecl, lib, gpgme, file, gnupg, php, fetchFromGitHub }:
buildPecl {
let
version = "1.5.1";
in buildPecl {
inherit version;
pname = "gnupg";
version = "1.5.1";
sha256 = "sha256-qZBvRlqyNDyy8xJ+4gnHJ2Ajh0XDSHjZu8FXZIYhklI=";
src = fetchFromGitHub {
owner = "php-gnupg";
repo = "php-gnupg";
rev = "gnupg-${version}";
fetchSubmodules = true;
sha256 = "sha256-kEc0883sYgmAf1mkH0zRjHzUASnZgQvdYE6VzT5X2RI=";
};
buildInputs = [ gpgme ];
checkInputs = [ gnupg ];
@ -29,6 +37,7 @@ buildPecl {
doCheck = true;
meta = with lib; {
changelog = "https://github.com/php-gnupg/php-gnupg/releases/tag/gnupg-${version}";
broken = lib.versionOlder php.version "8.1"; # Broken on PHP older than 8.1.
description = "PHP wrapper for GpgME library that provides access to GnuPG";
license = licenses.bsd3;