2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
2016-04-07 06:34:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-03 03:36:03 +00:00
|
|
|
name = "lombok-1.18.16";
|
2018-01-09 20:34:09 +00:00
|
|
|
|
2016-04-07 06:34:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://projectlombok.org/downloads/${name}.jar";
|
2020-11-03 03:36:03 +00:00
|
|
|
sha256 = "1msys7xkaj0d7fi112fmb2z50mk46db58agzrrdyimggsszwn1kj";
|
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 = "A library that can write a lot of boilerplate for your Java project";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|