summary refs log tree commit diff
path: root/pkgs/development/perl-modules/generic/default.nix
blob: 96094ab4e538808178d49352ed8257ebc60d7c60 (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
perl:

{ buildInputs ? [], ... } @ 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 = buildInputs ++ [ perl ];
  }
)