mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
lombok: add bin output with lombok wrapper script
The wrapper can be used, e.g., to run the delombok command.
This commit is contained in:
parent
88439304c6
commit
9ce91be010
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, makeWrapper, jdk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lombok-1.18.16";
|
||||
@ -8,9 +8,17 @@ stdenv.mkDerivation rec {
|
||||
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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user