nixpkgs/pkgs/development/tools/analysis/pmd/default.nix
R. RyanTM c6873609ff
pmd: 6.41.0 -> 6.42.0
* pmd: 6.41.0 -> 6.42.0 (#159755)

* pmd: remove LGPL-3 from licenses
Removed upstream in commit id c8d6e7f00b0d8f18df910441d519fda2d23b00f4

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-17 13:41:51 +01:00

30 lines
810 B
Nix

{ lib, stdenv, fetchurl, unzip, makeWrapper, openjdk }:
stdenv.mkDerivation rec {
pname = "pmd";
version = "6.42.0";
src = fetchurl {
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
sha256 = "sha256-rVqHMhiuFLVTz/J9TGnA/42m9GaGORsf+CrUUqsdUfs=";
};
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R {bin,lib} $out
wrapProgram $out/bin/run.sh --prefix PATH : ${openjdk.jre}/bin
runHook postInstall
'';
meta = with 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 ];
};
}