depot/third_party/nixpkgs/pkgs/development/tools/analysis/pmd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
722 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "pmd";
version = "6.17.0";
nativeBuildInputs = [ unzip ];
src = fetchurl {
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
sha256 = "0000w28dg5z8gs7cxhx7d0fv10ry0yxamk5my28ncqqsg7a4qy8w";
};
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R {bin,lib} $out
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 ];
};
}