1 { lib, stdenv, fetchurl, makeWrapper, jdk }:
3 stdenv.mkDerivation rec {
8 url = "https://projectlombok.org/downloads/lombok-${version}.jar";
9 sha256 = "sha256-wn1rKv9WJB0bB/y8xrGDcJ5rQyyA9zdO6x2CPobUuBo=";
12 nativeBuildInputs = [ makeWrapper ];
14 outputs = [ "out" "bin" ];
17 mkdir -p $out/share/java
18 cp $src $out/share/java/lombok.jar
20 makeWrapper ${jdk}/bin/java $bin/bin/lombok \
21 --add-flags "-cp ${jdk}/lib/openjdk/lib/tools.jar:$out/share/java/lombok.jar" \
22 --add-flags lombok.launch.Main
26 description = "Library that can write a lot of boilerplate for your Java project";
27 mainProgram = "lombok";
28 platforms = lib.platforms.all;
29 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
30 license = lib.licenses.mit;
31 homepage = "https://projectlombok.org/";
32 maintainers = [ lib.maintainers.CrystalGamma ];