nixpkgs/maintainers/scripts/nixpkgs-lint.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
601 B
Nix
Raw Normal View History

2021-01-17 23:14:59 +03:00
{ stdenv, lib, makeWrapper, perl, perlPackages }:
stdenv.mkDerivation {
name = "nixpkgs-lint-1";
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl perlPackages.XMLSimple ];
2019-06-19 18:45:34 +03:00
dontUnpack = true;
buildPhase = "true";
installPhase =
''
mkdir -p $out/bin
cp ${./nixpkgs-lint.pl} $out/bin/nixpkgs-lint
wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
'';
2021-01-17 23:14:59 +03:00
meta = with lib; {
maintainers = [ maintainers.eelco ];
description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
2021-01-17 23:14:59 +03:00
platforms = platforms.unix;
};
}