10 stdenv.mkDerivation rec {
15 url = "https://github.com/pmd/pmd/releases/download/pmd_releases/${version}/pmd-bin-${version}.zip";
16 hash = "sha256-Iaz5bUPLQNWRyszMHCCmb8eW6t32nqYYEllER7rHoR0=";
30 install -Dm755 bin/run.sh $out/libexec/pmd
31 install -Dm644 lib/*.jar -t $out/lib/pmd
33 wrapProgram $out/libexec/pmd \
34 --prefix PATH : ${openjdk.jre}/bin \
35 --set LIB_DIR $out/lib/pmd
37 for app in pmd cpd cpdgui designer bgastviewer designerold ast-dump; do
38 makeWrapper $out/libexec/pmd $out/bin/$app --argv0 $app --add-flags $app
45 description = "Extensible cross-language static code analyzer";
46 homepage = "https://pmd.github.io/";
47 changelog = "https://pmd.github.io/pmd-${version}/pmd_release_notes.html";
48 platforms = platforms.unix;
49 license = with licenses; [