2009-06-18 12:51:51 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2015-03-12 20:19:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pmd-${version}";
|
2018-10-11 11:20:01 +00:00
|
|
|
version = "6.8.0";
|
2015-03-12 20:19:03 +00:00
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
2009-06-18 12:51:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-12 20:19:03 +00:00
|
|
|
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
|
2018-10-11 11:20:01 +00:00
|
|
|
sha256 = "1vfkg2l3sl5ahhs89nvkg0z1ah1k67c44nwpvaymq73rb2bb8ibr";
|
2009-06-18 12:51:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-06-18 12:51:51 +00:00
|
|
|
cp -R * $out
|
|
|
|
'';
|
|
|
|
|
2018-10-11 11:20:01 +00:00
|
|
|
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 ];
|
2009-06-18 12:51:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|