1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/development/tools/analysis/pmd/default.nix

30 lines
823 B
Nix
Raw Normal View History

2020-07-01 20:30:31 +01:00
{ stdenv, fetchurl, unzip, makeWrapper, openjdk }:
2015-03-12 20:19:03 +00:00
stdenv.mkDerivation rec {
pname = "pmd";
2020-07-01 20:30:31 +01:00
version = "6.25.0";
src = fetchurl {
2015-03-12 20:19:03 +00:00
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
2020-07-01 20:30:31 +01:00
sha256 = "0ykg0wylyfiwjlhkbfjqfam34174paihrw7x1dwfq9anyn5bjf0k";
};
2020-07-01 20:30:31 +01:00
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R {bin,lib} $out
2020-07-01 20:30:31 +01:00
wrapProgram $out/bin/run.sh --prefix PATH : ${openjdk.jre}/bin
runHook postInstall
'';
meta = with stdenv.lib; {
description = "An extensible cross-language static code analyzer";
homepage = "https://pmd.github.io/";
changelog = "https://pmd.github.io/pmd-${version}/pmd_release_notes.html";
platforms = platforms.unix;
license = with licenses; [ bsdOriginal asl20 lgpl3Plus ];
};
}