summary refs log tree commit diff
path: root/maintainers/scripts/nixpkgs-lint.nix
blob: be2a92509f8730733022859402e6aa426dbec293 (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
{ stdenv, makeWrapper, perl, perlPackages }:

stdenv.mkDerivation {
  name = "nixpkgs-lint-1";

  buildInputs = [ makeWrapper perl perlPackages.XMLSimple ];

  unpackPhase = "true";
  buildPhase = "true";

  installPhase =
    ''
      mkdir -p $out/bin
      cp ${./nixpkgs-lint.pl} $out/bin/nixpkgs-lint
      wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
    '';

  meta = {
    maintainers = [ stdenv.lib.maintainers.eelco ];
    description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
    platforms = stdenv.lib.platforms.unix;
  };
}