mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
27 lines
560 B
Nix
27 lines
560 B
Nix
{ fetchurl, buildPerlPackage, zlib, stdenv }:
|
|
|
|
buildPerlPackage rec {
|
|
name = "Compress-Raw-Zlib-2.063";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://cpan/modules/by-module/Compress/${name}.tar.gz";
|
|
sha256 = "16cn9pq4pngncs3qhlam0yw2l0q7hq4qfdyxp03jaad6ndc4dzp9";
|
|
};
|
|
|
|
preConfigure = ''
|
|
cat > config.in <<EOF
|
|
BUILD_ZLIB = False
|
|
INCLUDE = ${zlib}/include
|
|
LIB = ${zlib}/lib
|
|
OLD_ZLIB = False
|
|
GZIP_OS_CODE = AUTO_DETECT
|
|
EOF
|
|
'';
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = {
|
|
license = "perl5";
|
|
};
|
|
}
|