Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 44 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchzip 4, makeWrapper 5, jre 6}: 7 8stdenv.mkDerivation rec { 9 pname = "jacoco"; 10 version = "0.8.10"; 11 12 src = fetchzip { 13 url = "https://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/${version}/jacoco-${version}.zip"; 14 stripRoot = false; 15 sha256 = "sha256-V8I3DXoeUPNxAe7z/ISGa5UQAyLJN7RKXlD0FOw92Oo="; 16 }; 17 18 outputs = [ "out" "doc" ]; 19 20 nativeBuildInputs = [ makeWrapper ]; 21 22 installPhase = '' 23 runHook preInstall 24 25 mkdir -p $doc/share/doc $out/bin 26 27 cp -r doc $doc/share/doc/jacoco 28 install -Dm444 lib/* -t $out/share/java 29 30 makeWrapper ${jre}/bin/java $out/bin/jacoco \ 31 --add-flags "-jar $out/share/java/jacococli.jar" 32 33 runHook postInstall 34 ''; 35 36 meta = with lib; { 37 description = "A free code coverage library for Java"; 38 homepage = "https://www.jacoco.org/jacoco"; 39 changelog = "https://www.jacoco.org/jacoco/trunk/doc/changes.html"; 40 license = licenses.epl20; 41 platforms = platforms.all; 42 maintainers = with maintainers; [ figsoda ]; 43 }; 44}