lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 54 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 unzip, 6 makeWrapper, 7 jdk8, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "pmd"; 12 version = "6.55.0"; 13 14 src = fetchurl { 15 url = "https://github.com/pmd/pmd/releases/download/pmd_releases/${version}/pmd-bin-${version}.zip"; 16 hash = "sha256-Iaz5bUPLQNWRyszMHCCmb8eW6t32nqYYEllER7rHoR0="; 17 }; 18 19 nativeBuildInputs = [ 20 unzip 21 makeWrapper 22 ]; 23 24 dontConfigure = true; 25 dontBuild = true; 26 27 installPhase = '' 28 runHook preInstall 29 30 install -Dm755 bin/run.sh $out/libexec/pmd 31 install -Dm644 lib/*.jar -t $out/lib/pmd 32 33 wrapProgram $out/libexec/pmd \ 34 --prefix PATH : ${jdk8.jre}/bin \ 35 --set LIB_DIR $out/lib/pmd 36 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 39 done 40 41 runHook postInstall 42 ''; 43 44 meta = with lib; { 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; [ 50 bsdOriginal 51 asl20 52 ]; 53 }; 54}