Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 openldap, 5 buildPerlPackage, 6}: 7 8buildPerlPackage rec { 9 pname = "Mozilla-Ldap"; 10 version = "1.5.3"; 11 USE_OPENLDAP = 1; 12 LDAPSDKDIR = openldap.dev; 13 LDAPSDKLIBDIR = "${openldap.out}/lib"; 14 src = fetchurl { 15 url = "https://ftp.mozilla.org/pub/directory/perldap/releases/${version}/src/perl-mozldap-${version}.tar.gz"; 16 sha256 = "0s0albdw0zvg3w37s7is7gddr4mqwicjxxsy400n1p96l7ipnw4x"; 17 }; 18 meta = { 19 description = "Mozilla's ldap client library"; 20 homepage = "https://metacpan.org/release/perldap"; 21 license = with lib.licenses; [ 22 mpl20 23 lgpl21Plus 24 gpl2Plus 25 ]; 26 }; 27}