2021-03-09 03:18:52 +00:00
|
|
|
{ buildPecl, fetchFromGitHub, lib, pkg-config, dlib }:
|
2021-01-09 10:05:03 +00:00
|
|
|
let
|
|
|
|
pname = "pdlib";
|
|
|
|
version = "1.0.2";
|
|
|
|
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}";
|
|
|
|
sha256 = "0qnmqwlw5vb2rvliap4iz9val6mal4qqixcw69pwskdw5jka6v5i";
|
|
|
|
};
|
|
|
|
|
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; {
|
|
|
|
description = "A PHP extension for Dlib";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|