nixpkgs/pkgs/development/tools/analysis/pmd/default.nix

27 lines
579 B
Nix
Raw Normal View History

{stdenv, fetchurl, unzip}:
2015-03-12 20:19:03 +00:00
stdenv.mkDerivation rec {
name = "pmd-${version}";
version = "6.14.0";
2015-03-12 20:19:03 +00:00
buildInputs = [ unzip ];
src = fetchurl {
2015-03-12 20:19:03 +00:00
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
sha256 = "0k40l93fxakms9vm641d4vlb68gfhkblrm24sb7slzvhq2v832dj";
};
installPhase = ''
mkdir -p $out
cp -R * $out
'';
meta = with stdenv.lib; {
description = "An extensible cross-language static code analyzer";
homepage = https://pmd.github.io/;
platforms = platforms.unix;
license = with licenses; [ bsdOriginal asl20 ];
};
}