2013-07-26 01:50:14 +04:00
|
|
|
{ stdenv, makeWrapper, perl, perlPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nixpkgs-lint-1";
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper perl perlPackages.XMLSimple ];
|
|
|
|
|
2019-06-19 18:45:34 +03:00
|
|
|
dontUnpack = true;
|
2013-07-26 01:50:14 +04:00
|
|
|
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";
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-07-26 01:50:14 +04:00
|
|
|
};
|
|
|
|
}
|