2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-26 17:43:05 +00:00
|
|
|
pname = "lombok";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.18.24";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "https://projectlombok.org/downloads/lombok-${version}.jar";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-01hLwtsD8Fn5hPsKnBGarB+g2leKRI5p/D9os2WEx0k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "bin" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp $src $out/share/java/lombok.jar
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
makeWrapper ${jdk}/bin/java $bin/bin/lombok \
|
|
|
|
--add-flags "-cp ${jdk}/lib/openjdk/lib/tools.jar:$out/share/java/lombok.jar" \
|
|
|
|
--add-flags lombok.launch.Main
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library that can write a lot of boilerplate for your Java project";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://projectlombok.org/";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = [ lib.maintainers.CrystalGamma ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|