nixpkgs/pkgs/development/libraries/java/lombok/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
981 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jdk }:
2016-04-07 06:34:41 +00:00
stdenv.mkDerivation rec {
pname = "lombok";
2024-06-29 12:31:12 +00:00
version = "1.18.34";
2016-04-07 06:34:41 +00:00
src = fetchurl {
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
};
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
'';
2016-04-07 06:34:41 +00:00
meta = {
description = "Library that can write a lot of boilerplate for your Java project";
mainProgram = "lombok";
platforms = lib.platforms.all;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.mit;
homepage = "https://projectlombok.org/";
maintainers = [ lib.maintainers.CrystalGamma ];
2016-04-07 06:34:41 +00:00
};
}