You can clone with
I tried this command on OS X 10.7 today:
sudo nix-env -iA nixpkgs.perlPackages.CompressRawZlib
It fails all of the tests, because the version of zlib it built with (Nix: 1.2.7) is not the version of zlib the tests find (OS: 1.2.5).
The hack was easy: I added the following to nixpkgs/pkgs/development/perl-modules/generic/build.sh, right before the call to perl Makefile.PL:
However, this is something the package should be declaring. I just don't know what that syntax should look like.
Is it just the test script that fails, or does the built module have a problem too?
Compress-Raw-Zlib: Don't check on Darwin.
This isn't a perfect solution, but as I don't have a test machine this will probably have to do for now.
That's a pretty suboptimal solution, I'd say, and doesn't solve the fact that this will bite any future Perl module whose tests depend on a shared library to run.
Agreed, I'm working on something now but will need someone to test it for me.
Reopening this until I have time to really look at it (hopefully this week?)
Hopefully will be fixed as part of #1484