Skip to content

Commit 9763b80

Browse files
authored
php.extensions.uuid: init at v1.2.1 (#360352)
2 parents b9e553d + a9f1795 commit 9763b80

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
buildPecl,
3+
lib,
4+
libuuid,
5+
fetchFromGitHub,
6+
}:
7+
8+
let
9+
version = "v1.2.1";
10+
in
11+
buildPecl {
12+
inherit version;
13+
pname = "uuid";
14+
15+
src = fetchFromGitHub {
16+
owner = "php";
17+
repo = "pecl-networking-uuid";
18+
rev = "refs/tags/${version}";
19+
hash = "sha256-C4SoSKkCTQOLKM1h47vbBgiHTG+ChocDB9tzhWfKUsw=";
20+
};
21+
22+
buildInputs = [ libuuid ];
23+
makeFlags = [ "phpincludedir=$(dev)/include" ];
24+
doCheck = true;
25+
26+
env.PHP_UUID_DIR = libuuid;
27+
28+
meta = {
29+
changelog = "https://github.com/php/pecl-networking-uuid/releases/tag/${version}";
30+
description = "A wrapper around Universally Unique IDentifier library (libuuid).";
31+
license = lib.licenses.php301;
32+
homepage = "https://github.com/php/pecl-networking-uuid";
33+
maintainers = lib.teams.php.members;
34+
platforms = lib.platforms.linux;
35+
};
36+
}

pkgs/top-level/php-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ in {
359359

360360
tideways = callPackage ../development/php-packages/tideways { };
361361

362+
uuid = callPackage ../development/php-packages/uuid { };
363+
362364
uv = callPackage ../development/php-packages/uv { };
363365

364366
vld = callPackage ../development/php-packages/vld { };

0 commit comments

Comments
 (0)