2009-06-18 14:51:51 +02:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2015-03-12 21:19:03 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pmd-${version}";
|
|
|
|
version = "5.2.3";
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
2009-06-18 14:51:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-12 21:19:03 +01:00
|
|
|
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
|
|
|
|
sha256 = "03frkyiii7304qrcypdqcxqxjf5n3p59zjib0r802mbbx1nzcisn";
|
2009-06-18 14:51:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2009-06-18 14:51:51 +02:00
|
|
|
cp -R * $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Scans Java source code and looks for potential problems";
|
2009-06-18 14:51:51 +02:00
|
|
|
homepage = http://pmd.sourceforge.net/;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-06-18 14:51:51 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|