1{
2 buildPecl,
3 lib,
4 libuuid,
5 fetchFromGitHub,
6}:
7
8let
9 version = "1.3.0";
10in
11buildPecl {
12 inherit version;
13 pname = "uuid";
14
15 src = fetchFromGitHub {
16 owner = "php";
17 repo = "pecl-networking-uuid";
18 tag = "v${version}";
19 hash = "sha256-00zJ//O1xqKTedRYThzeXOuL25wKLMZXjJWm/eXLkC4=";
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/v${version}";
30 description = "Wrapper around Universally Unique IDentifier library (libuuid)";
31 license = lib.licenses.php301;
32 homepage = "https://github.com/php/pecl-networking-uuid";
33 teams = [ lib.teams.php ];
34 platforms = lib.platforms.linux;
35 };
36}