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