e0d1b75f19
GitOrigin-RevId: fe01052444c1d66ed6ef76df2af798c9769e9e79
31 lines
864 B
Nix
31 lines
864 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lombok-1.18.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://projectlombok.org/downloads/${name}.jar";
|
|
sha256 = "sha256-zpR75sL751n7vo7ztCtoJfgUyYyIU/EBPy2WMM7fdLA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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 = lib.platforms.all;
|
|
license = lib.licenses.mit;
|
|
homepage = "https://projectlombok.org/";
|
|
maintainers = [ lib.maintainers.CrystalGamma ];
|
|
};
|
|
}
|