php.extensions.uuid: init at v1.2.1 (#360352)

This commit is contained in:
Pol Dellaiera 2024-12-02 17:46:54 +01:00 committed by GitHub
commit 9763b802ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{
buildPecl,
lib,
libuuid,
fetchFromGitHub,
}:
let
version = "v1.2.1";
in
buildPecl {
inherit version;
pname = "uuid";
src = fetchFromGitHub {
owner = "php";
repo = "pecl-networking-uuid";
rev = "refs/tags/${version}";
hash = "sha256-C4SoSKkCTQOLKM1h47vbBgiHTG+ChocDB9tzhWfKUsw=";
};
buildInputs = [ libuuid ];
makeFlags = [ "phpincludedir=$(dev)/include" ];
doCheck = true;
env.PHP_UUID_DIR = libuuid;
meta = {
changelog = "https://github.com/php/pecl-networking-uuid/releases/tag/${version}";
description = "A wrapper around Universally Unique IDentifier library (libuuid).";
license = lib.licenses.php301;
homepage = "https://github.com/php/pecl-networking-uuid";
maintainers = lib.teams.php.members;
platforms = lib.platforms.linux;
};
}

View File

@ -359,6 +359,8 @@ in {
tideways = callPackage ../development/php-packages/tideways { }; tideways = callPackage ../development/php-packages/tideways { };
uuid = callPackage ../development/php-packages/uuid { };
uv = callPackage ../development/php-packages/uv { }; uv = callPackage ../development/php-packages/uv { };
vld = callPackage ../development/php-packages/vld { }; vld = callPackage ../development/php-packages/vld { };