2021-01-17 21:14:59 +01:00
|
|
|
{ stdenv, lib, makeWrapper, perl, perlPackages }:
|
2013-07-25 23:50:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nixpkgs-lint-1";
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ perl perlPackages.XMLSimple ];
|
2013-07-25 23:50:14 +02:00
|
|
|
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2013-07-25 23:50:14 +02:00
|
|
|
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 21:14:59 +01:00
|
|
|
meta = with lib; {
|
|
|
|
maintainers = [ maintainers.eelco ];
|
2013-07-25 23:50:14 +02:00
|
|
|
description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "nixpkgs-lint";
|
2021-01-17 21:14:59 +01:00
|
|
|
platforms = platforms.unix;
|
2013-07-25 23:50:14 +02:00
|
|
|
};
|
|
|
|
}
|