ffc78d3539
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
31 lines
875 B
Nix
31 lines
875 B
Nix
{ stdenv, fetchurl, makeWrapper, jdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lombok-1.18.16";
|
|
|
|
src = fetchurl {
|
|
url = "https://projectlombok.org/downloads/${name}.jar";
|
|
sha256 = "1msys7xkaj0d7fi112fmb2z50mk46db58agzrrdyimggsszwn1kj";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
outputs = [ "out" "bin" ];
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/share/java
|
|
cp $src $out/share/java/lombok.jar
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "A library that can write a lot of boilerplate for your Java project";
|
|
platforms = stdenv.lib.platforms.all;
|
|
license = stdenv.lib.licenses.mit;
|
|
homepage = "https://projectlombok.org/";
|
|
maintainers = [ stdenv.lib.maintainers.CrystalGamma ];
|
|
};
|
|
}
|