2005-01-22 00:19:27 +00:00
|
|
|
perl:
|
|
|
|
|
2018-02-28 17:00:03 +00:00
|
|
|
{ nativeBuildInputs ? [], name, ... } @ attrs:
|
2005-01-22 00:19:27 +00:00
|
|
|
|
2009-02-12 15:56:35 +00:00
|
|
|
perl.stdenv.mkDerivation (
|
2018-07-11 03:43:22 +00:00
|
|
|
(
|
|
|
|
perl.stdenv.lib.recursiveUpdate
|
2009-02-12 15:56:35 +00:00
|
|
|
{
|
2016-09-01 09:07:23 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
2013-08-26 10:04:56 +00:00
|
|
|
|
2009-02-12 15:56:35 +00:00
|
|
|
doCheck = true;
|
2013-08-26 10:04:56 +00:00
|
|
|
|
2009-02-12 15:56:35 +00:00
|
|
|
checkTarget = "test";
|
2013-08-26 10:04:56 +00:00
|
|
|
|
2009-07-02 13:54:52 +00:00
|
|
|
# Prevent CPAN downloads.
|
|
|
|
PERL_AUTOINSTALL = "--skipdeps";
|
|
|
|
|
2014-04-10 11:45:26 +00:00
|
|
|
# Avoid creating perllocal.pod, which contains a timestamp
|
|
|
|
installTargets = "pure_install";
|
|
|
|
|
2009-07-02 13:54:52 +00: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;
|
2018-07-11 03:43:22 +00:00
|
|
|
|
|
|
|
meta.homepage = "https://metacpan.org/release/${(builtins.parseDrvName name).name}";
|
2009-02-12 15:56:35 +00:00
|
|
|
}
|
|
|
|
attrs
|
2018-07-11 03:43:22 +00:00
|
|
|
)
|
2009-02-12 15:56:35 +00:00
|
|
|
//
|
|
|
|
{
|
2013-08-26 10:04:56 +00:00
|
|
|
name = "perl-" + name;
|
2009-02-12 15:56:35 +00:00
|
|
|
builder = ./builder.sh;
|
2018-02-28 17:00:03 +00:00
|
|
|
nativeBuildInputs = nativeBuildInputs ++ [ (perl.dev or perl) ];
|
|
|
|
inherit perl;
|
2009-02-12 15:56:35 +00:00
|
|
|
}
|
|
|
|
)
|