2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
buildPecl,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pkg-config,
|
|
|
|
dlib,
|
|
|
|
}:
|
2021-01-09 10:05:03 +00:00
|
|
|
let
|
|
|
|
pname = "pdlib";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.1.0";
|
2021-01-09 10:05:03 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-01-09 10:05:03 +00:00
|
|
|
owner = "goodspb";
|
|
|
|
repo = "pdlib";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-AKZ3F2XzEQCeZkacSXBinxeGQrHBmqjP7mDGQ3RBAiE=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ (dlib.override { guiSupport = true; }) ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "PHP extension for Dlib";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = with licenses; [ mit ];
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/goodspb/pdlib";
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = lib.teams.php.members;
|
|
|
|
};
|
|
|
|
}
|