2005-01-22 03:19:27 +03:00
|
|
|
perl:
|
|
|
|
|
2010-04-01 18:41:51 +04:00
|
|
|
{ buildInputs ? [], ... } @ attrs:
|
2005-01-22 03:19:27 +03:00
|
|
|
|
2009-02-12 18:56:35 +03:00
|
|
|
perl.stdenv.mkDerivation (
|
|
|
|
{
|
|
|
|
doCheck = true;
|
2009-07-02 17:54:52 +04:00
|
|
|
|
2009-02-12 18:56:35 +03:00
|
|
|
checkTarget = "test";
|
2009-07-02 17:54:52 +04:00
|
|
|
|
|
|
|
# Prevent CPAN downloads.
|
|
|
|
PERL_AUTOINSTALL = "--skipdeps";
|
|
|
|
|
2014-04-10 15:45:26 +04:00
|
|
|
# Avoid creating perllocal.pod, which contains a timestamp
|
|
|
|
installTargets = "pure_install";
|
|
|
|
|
2009-07-02 17:54:52 +04:00
|
|
|
# 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;
|
2009-02-12 18:56:35 +03:00
|
|
|
}
|
|
|
|
//
|
|
|
|
attrs
|
|
|
|
//
|
|
|
|
{
|
|
|
|
name = "perl-" + attrs.name;
|
|
|
|
builder = ./builder.sh;
|
2010-04-01 18:41:51 +04:00
|
|
|
buildInputs = buildInputs ++ [ perl ];
|
2009-02-12 18:56:35 +03:00
|
|
|
}
|
|
|
|
)
|