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