Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 25 lines 611 B view raw
1{ buildPecl, fetchFromGitHub, lib, pkg-config, dlib }: 2let 3 pname = "pdlib"; 4 version = "1.1.0"; 5in 6buildPecl { 7 inherit pname version; 8 9 src = fetchFromGitHub { 10 owner = "goodspb"; 11 repo = "pdlib"; 12 rev = "v${version}"; 13 sha256 = "sha256-AKZ3F2XzEQCeZkacSXBinxeGQrHBmqjP7mDGQ3RBAiE="; 14 }; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ (dlib.override { guiSupport = true; }) ]; 18 19 meta = with lib; { 20 description = "A PHP extension for Dlib"; 21 license = with licenses; [ mit ]; 22 homepage = "https://github.com/goodspb/pdlib"; 23 maintainers = lib.teams.php.members; 24 }; 25}