1 { stdenv, lib, makeWrapper, perl, perlPackages }:
4 pname = "nixpkgs-lint";
7 nativeBuildInputs = [ makeWrapper ];
8 buildInputs = [ perl perlPackages.XMLSimple ];
16 cp ${./nixpkgs-lint.pl} $out/bin/nixpkgs-lint
17 # make the built version hermetic
18 substituteInPlace $out/bin/nixpkgs-lint \
19 --replace-fail "#! /usr/bin/env nix-shell" "#! ${lib.getExe perl}"
20 wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
24 maintainers = [ maintainers.eelco ];
25 description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
26 mainProgram = "nixpkgs-lint";
27 platforms = platforms.unix;