2019-06-04 23:10:59 -07:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2009-06-18 05:51:51 -07:00
|
|
|
|
2015-03-12 13:19:03 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-06-04 23:10:59 -07:00
|
|
|
pname = "pmd";
|
2019-07-15 22:46:59 -07:00
|
|
|
version = "6.16.0";
|
2015-03-12 13:19:03 -07:00
|
|
|
|
2019-06-04 23:10:59 -07:00
|
|
|
nativeBuildInputs = [ 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";
|
2019-07-15 22:46:59 -07:00
|
|
|
sha256 = "0h4818dxd9nq925asa9g3g9i2i5hg85ziapacyiqq4bhab67ysy4";
|
2009-06-18 05:51:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-06-04 23:10:59 -07:00
|
|
|
runHook preInstall
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p $out
|
2019-06-04 23:10:59 -07:00
|
|
|
cp -R {bin,lib} $out
|
|
|
|
runHook postInstall
|
2009-06-18 05:51:51 -07:00
|
|
|
'';
|
|
|
|
|
2018-10-11 04:20:01 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-11-09 04:37:30 -08:00
|
|
|
description = "An extensible cross-language static code analyzer";
|
2019-06-04 23:10:59 -07:00
|
|
|
homepage = "https://pmd.github.io/";
|
|
|
|
changelog = "https://pmd.github.io/pmd-${version}/pmd_release_notes.html";
|
2018-10-11 04:20:01 -07:00
|
|
|
platforms = platforms.unix;
|
2019-06-04 23:10:59 -07:00
|
|
|
license = with licenses; [ bsdOriginal asl20 lgpl3Plus ];
|
2009-06-18 05:51:51 -07:00
|
|
|
};
|
|
|
|
}
|