ce84af677b
from CPAN. svn path=/nixpkgs/trunk/; revision=16137
27 lines
573 B
Nix
27 lines
573 B
Nix
perl:
|
|
|
|
attrs:
|
|
|
|
perl.stdenv.mkDerivation (
|
|
{
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
# 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;
|
|
}
|
|
//
|
|
attrs
|
|
//
|
|
{
|
|
name = "perl-" + attrs.name;
|
|
builder = ./builder.sh;
|
|
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
|
|
}
|
|
)
|