2009-06-18 13:51:51 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2015-03-12 20:19:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pmd-${version}";
|
2019-05-02 02:34:53 +01:00
|
|
|
version = "6.14.0";
|
2015-03-12 20:19:03 +00:00
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
2009-06-18 13:51:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-12 20:19:03 +00:00
|
|
|
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
|
2019-05-02 02:34:53 +01:00
|
|
|
sha256 = "0k40l93fxakms9vm641d4vlb68gfhkblrm24sb7slzvhq2v832dj";
|
2009-06-18 13:51:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-06-18 13:51:51 +01:00
|
|
|
cp -R * $out
|
|
|
|
'';
|
|
|
|
|
2018-10-11 12:20:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-11-09 12:37:30 +00:00
|
|
|
description = "An extensible cross-language static code analyzer";
|
2018-10-11 12:20:01 +01:00
|
|
|
homepage = https://pmd.github.io/;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = with licenses; [ bsdOriginal asl20 ];
|
2009-06-18 13:51:51 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|