1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/development/perl-modules/generic/default.nix
2014-12-30 17:03:15 +01:00

31 lines
663 B
Nix

perl:
{ buildInputs ? [], ... } @ attrs:
perl.stdenv.mkDerivation (
{
doCheck = true;
checkTarget = "test";
# Prevent CPAN downloads.
PERL_AUTOINSTALL = "--skipdeps";
# Avoid creating perllocal.pod, which contains a timestamp
installTargets = "pure_install";
# From http://wiki.cpantesters.org/wiki/CPANAuthorNotes: "allows
# authors to skip certain tests (or include certain tests) when
# the results are not being monitored by a human being."
AUTOMATED_TESTING = true;
}
//
attrs
//
{
name = "perl-" + attrs.name;
builder = ./builder.sh;
buildInputs = buildInputs ++ [ perl ];
}
)