567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
604 B
Nix
32 lines
604 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 = {
|
|
description = "PHP extension for Dlib";
|
|
license = with lib.licenses; [ mit ];
|
|
homepage = "https://github.com/goodspb/pdlib";
|
|
teams = [ lib.teams.php ];
|
|
};
|
|
}
|