nixpkgs/pkgs/development/perl-modules/Compress-Raw-Zlib/default.nix

27 lines
560 B
Nix
Raw Normal View History

{ 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;
2013-01-19 00:02:51 +01:00
meta = {
license = "perl5";
};
}