1 { lib, stdenv, fetchurl, makeWrapper, jdk }:
3 stdenv.mkDerivation rec {
8 url = "https://projectlombok.org/downloads/lombok-${version}.jar";
9 sha256 = "sha256-01hLwtsD8Fn5hPsKnBGarB+g2leKRI5p/D9os2WEx0k=";
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 = "A library that can write a lot of boilerplate for your Java project";
27 platforms = lib.platforms.all;
28 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
29 license = lib.licenses.mit;
30 homepage = "https://projectlombok.org/";
31 maintainers = [ lib.maintainers.CrystalGamma ];