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-06-06 06:35:10 +00:00
|
|
|
version = "6.4.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-06-06 06:35:10 +00:00
|
|
|
sha256 = "17yjjmqcn1fy3bj73nh5i84yc7wappza612a0iwg0lqqn4yl7lyn";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Scans Java source code and looks for potential problems";
|
2009-06-18 12:51:51 +00:00
|
|
|
homepage = http://pmd.sourceforge.net/;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-06-18 12:51:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|