Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
31 lines
620 B
Nix
31 lines
620 B
Nix
{
|
|
buildPecl,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pkg-config,
|
|
dlib,
|
|
}:
|
|
let
|
|
pname = "pdlib";
|
|
version = "1.1.0";
|
|
in
|
|
buildPecl {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goodspb";
|
|
repo = "pdlib";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AKZ3F2XzEQCeZkacSXBinxeGQrHBmqjP7mDGQ3RBAiE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ (dlib.override { guiSupport = true; }) ];
|
|
|
|
meta = with lib; {
|
|
description = "PHP extension for Dlib";
|
|
license = with licenses; [ mit ];
|
|
homepage = "https://github.com/goodspb/pdlib";
|
|
maintainers = lib.teams.php.members;
|
|
};
|
|
}
|