1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/perl-modules/generic/default.nix
Vladimír Čunát 787f322540 $docdev fixups: mostly to avoid empty output
... after auto-removing some kinds of files by default.
In some cases I let them be removed and in others I let them be put into
$docdev. That was more due to general indecisiveness on this question
than any reasons in the particular cases.
2015-10-28 18:58:06 +01:00

33 lines
690 B
Nix

perl:
{ buildInputs ? [], name, ... } @ attrs:
perl.stdenv.mkDerivation (
{
outputs = [ "out" "docdev" ];
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-" + name;
builder = ./builder.sh;
buildInputs = buildInputs ++ [ perl ];
}
)