2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
2016-04-07 06:34:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-09 22:12:55 +00:00
|
|
|
pname = "lombok";
|
2024-06-29 12:31:12 +00:00
|
|
|
version = "1.18.34";
|
2018-01-09 20:34:09 +00:00
|
|
|
|
2016-04-07 06:34:41 +00:00
|
|
|
src = fetchurl {
|
2021-11-09 22:12:55 +00:00
|
|
|
url = "https://projectlombok.org/downloads/lombok-${version}.jar";
|
2024-06-29 12:31:12 +00:00
|
|
|
sha256 = "sha256-wn1rKv9WJB0bB/y8xrGDcJ5rQyyA9zdO6x2CPobUuBo=";
|
2016-04-07 06:34:41 +00:00
|
|
|
};
|
2018-01-09 20:34:09 +00:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-11-12 22:05:24 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "bin" ];
|
|
|
|
|
2018-01-09 20:34:09 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp $src $out/share/java/lombok.jar
|
2020-11-12 22:05:24 +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
|
2018-01-09 20:34:09 +00:00
|
|
|
'';
|
|
|
|
|
2016-04-07 06:34:41 +00:00
|
|
|
meta = {
|
|
|
|
description = "Library that can write a lot of boilerplate for your Java project";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "lombok";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.all;
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://projectlombok.org/";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.CrystalGamma ];
|
2016-04-07 06:34:41 +00:00
|
|
|
};
|
|
|
|
}
|