6b495e9251
This is a simple tool to scan Nixpkgs for violations of the packaging guidelines, such as multiple packages with the same name, packages that lack a description or license, and so on. To use: $ nix-env -i nixpkgs-lint $ cd .../nixpkgs $ nixpkgs-lint Current statistics: Number of packages: 8666 Number of missing maintainers: 3711 Number of missing licenses: 6159 Number of missing descriptions: 1337 Number of bad descriptions: 633 Number of name collisions: 277
23 lines
541 B
Nix
23 lines
541 B
Nix
{ 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";
|
|
};
|
|
}
|