summary refs log tree commit diff
path: root/pkgs/development/perl-modules/generic/default.nix
blob: bf41f4d394595ed25538763dc30dc77702f9cec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 ];
  }
)