forked from mirrors/nixpkgs
27 lines
603 B
Nix
27 lines
603 B
Nix
{ fetchurl, buildPerlPackage, zlib, stdenv }:
|
|
|
|
buildPerlPackage rec {
|
|
name = "Compress-Raw-Zlib-2.074";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://cpan/authors/id/P/PM/PMQS/${name}.tar.gz";
|
|
sha256 = "08bpx9v6i40n54rdcj6invlj294z20amrl8wvwf9b83aldwdwsd3";
|
|
};
|
|
|
|
preConfigure = ''
|
|
cat > config.in <<EOF
|
|
BUILD_ZLIB = False
|
|
INCLUDE = ${zlib.dev}/include
|
|
LIB = ${zlib.out}/lib
|
|
OLD_ZLIB = False
|
|
GZIP_OS_CODE = AUTO_DETECT
|
|
EOF
|
|
'';
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = {
|
|
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
|
};
|
|
}
|