1{ stdenv, makeWrapper, perl, perlPackages }:
2
3stdenv.mkDerivation {
4 name = "nixpkgs-lint-1";
5
6 buildInputs = [ makeWrapper perl perlPackages.XMLSimple ];
7
8 unpackPhase = "true";
9 buildPhase = "true";
10
11 installPhase =
12 ''
13 mkdir -p $out/bin
14 cp ${./nixpkgs-lint.pl} $out/bin/nixpkgs-lint
15 wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
16 '';
17
18 meta = {
19 maintainers = [ stdenv.lib.maintainers.eelco ];
20 description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
21 platforms = stdenv.lib.platforms.unix;
22 };
23}