pmd: 6.17.0 -> 6.25.0, fix runtime

This commit is contained in:
Jonathan Ringer 2020-07-01 12:30:31 -07:00 committed by Jon
parent e63a945017
commit 6eb63fc2e5

View File

@ -1,20 +1,21 @@
{ stdenv, fetchurl, unzip }: { stdenv, fetchurl, unzip, makeWrapper, openjdk }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pmd"; pname = "pmd";
version = "6.17.0"; version = "6.25.0";
nativeBuildInputs = [ unzip ];
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip"; url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
sha256 = "0000w28dg5z8gs7cxhx7d0fv10ry0yxamk5my28ncqqsg7a4qy8w"; sha256 = "0ykg0wylyfiwjlhkbfjqfam34174paihrw7x1dwfq9anyn5bjf0k";
}; };
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out mkdir -p $out
cp -R {bin,lib} $out cp -R {bin,lib} $out
wrapProgram $out/bin/run.sh --prefix PATH : ${openjdk.jre}/bin
runHook postInstall runHook postInstall
''; '';