2005-01-22 01:19:27 +01:00
|
|
|
perl:
|
|
|
|
|
2013-08-26 12:04:56 +02:00
|
|
|
{ buildInputs ? [], name, ... } @ attrs:
|
2005-01-22 01:19:27 +01:00
|
|
|
|
2009-02-12 16:56:35 +01:00
|
|
|
perl.stdenv.mkDerivation (
|
|
|
|
{
|
2013-08-26 12:04:56 +02:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2009-02-12 16:56:35 +01:00
|
|
|
doCheck = true;
|
2013-08-26 12:04:56 +02:00
|
|
|
|
2009-02-12 16:56:35 +01:00
|
|
|
checkTarget = "test";
|
2013-08-26 12:04:56 +02:00
|
|
|
|
2009-07-02 15:54:52 +02:00
|
|
|
# Prevent CPAN downloads.
|
|
|
|
PERL_AUTOINSTALL = "--skipdeps";
|
|
|
|
|
|
|
|
# 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 16:56:35 +01:00
|
|
|
}
|
|
|
|
//
|
|
|
|
attrs
|
|
|
|
//
|
|
|
|
{
|
2013-08-26 12:04:56 +02:00
|
|
|
name = "perl-" + name;
|
2009-02-12 16:56:35 +01:00
|
|
|
builder = ./builder.sh;
|
2010-04-01 16:41:51 +02:00
|
|
|
buildInputs = buildInputs ++ [ perl ];
|
2009-02-12 16:56:35 +01:00
|
|
|
}
|
|
|
|
)
|