Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 88439304c631
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ce91be010e1
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 1, 2021

  1. lombok: add bin output with lombok wrapper script

    The wrapper can be used, e.g., to run the delombok command.
    rycee committed Jan 1, 2021

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    9ce91be View commit details
Showing with 9 additions and 1 deletion.
  1. +9 −1 pkgs/development/libraries/java/lombok/default.nix
10 changes: 9 additions & 1 deletion pkgs/development/libraries/java/lombok/default.nix
Original file line number Diff line number Diff line change
@@ -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 = {