mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
bf414c9d4f
- there were many easy merge conflicts - cc-wrapper needed nontrivial changes Many other problems might've been created by interaction of the branches, but stdenv and a few other packages build fine now.
33 lines
687 B
Nix
33 lines
687 B
Nix
perl:
|
|
|
|
{ buildInputs ? [], name, ... } @ attrs:
|
|
|
|
perl.stdenv.mkDerivation (
|
|
{
|
|
outputs = [ "out" "man" ];
|
|
|
|
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 ];
|
|
}
|
|
)
|