at master 610 B view raw
1{ 2 buildPecl, 3 fetchFromGitHub, 4 lib, 5 pkg-config, 6 dlib, 7}: 8let 9 pname = "pdlib"; 10 version = "1.1.0"; 11in 12buildPecl { 13 inherit pname version; 14 15 src = fetchFromGitHub { 16 owner = "goodspb"; 17 repo = "pdlib"; 18 rev = "v${version}"; 19 sha256 = "sha256-AKZ3F2XzEQCeZkacSXBinxeGQrHBmqjP7mDGQ3RBAiE="; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ (dlib.override { guiSupport = true; }) ]; 24 25 meta = with lib; { 26 description = "PHP extension for Dlib"; 27 license = with licenses; [ mit ]; 28 homepage = "https://github.com/goodspb/pdlib"; 29 teams = [ lib.teams.php ]; 30 }; 31}