@@ -1,26 +1,28 @@
1−{stdenv, fetchurl, unzip}:
1+{ stdenv, fetchurl, unzip }:
22
33stdenv.mkDerivation rec {
4− name = "pmd-${version}";
5− version = "6.14.0";
4+ pname = "pmd";
5+ version = "6.15.0";
66
7− buildInputs = [ unzip ];
7+ nativeBuildInputs = [ unzip ];
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
11− sha256 = "0k40l93fxakms9vm641d4vlb68gfhkblrm24sb7slzvhq2v832dj";
11+ sha256 = "0im64lg18bv764i14g3p42dzd7kqq9j5an8dkz1vanypb1jf5j3s";
1212 };
1313
1414 installPhase = ''
15+ runHook preInstall
1516 mkdir -p $out
16− cp -R * $out
17+ cp -R {bin,lib} $out
18+ runHook postInstall
1719 '';
1820
1921 meta = with stdenv.lib; {
2022 description = "An extensible cross-language static code analyzer";
21− homepage = https://pmd.github.io/;
23+ homepage = "https://pmd.github.io/";
24+ changelog = "https://pmd.github.io/pmd-${version}/pmd_release_notes.html";
2225 platforms = platforms.unix;
23− license = with licenses; [ bsdOriginal asl20 ];
26+ license = with licenses; [ bsdOriginal asl20 lgpl3Plus ];
2427 };
2528}
26−