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-01-25 03:21:06 +00:00
|
|
|
version = "1.18.22";
|
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-01-25 03:21:06 +00:00
|
|
|
sha256 = "sha256-7O8VgUEdeoLMBCgWZ+4LrF18ClqudM/DhDA5bJHDGDE=";
|
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
|
|
|
};
|
|
|
|
}
|