Skip to content

Commit

Permalink
Merge pull request #301914 from I-Al-Istannen/pkg/jreleaser-cli
Browse files Browse the repository at this point in the history
jreleaser-cli: init at 1.13.1
  • Loading branch information
onny authored Aug 23, 2024
2 parents 41d82d8 + b450e89 commit 3660d6b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8597,6 +8597,11 @@
name = "Iago Manoel Brito";
keys = [ { fingerprint = "DF90 9D58 BEE4 E73A 1B8C 5AF3 35D3 9F9A 9A1B C8DA"; } ];
};
i-al-istannen = {
name = "I Al Istannen";
github = "I-Al-Istannen";
githubId = 20284688;
};
iammrinal0 = {
email = "[email protected]";
matrix = "@iammrinal0:nixos.dev";
Expand Down
36 changes: 36 additions & 0 deletions pkgs/by-name/jr/jreleaser-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
stdenv,
fetchurl,
makeWrapper,
jre,
}:
stdenv.mkDerivation rec {
pname = "jreleaser-cli";
version = "1.13.1";

src = fetchurl {
url = "https://github.com/jreleaser/jreleaser/releases/download/v${version}/jreleaser-tool-provider-${version}.jar";
hash = "sha256-aqpyEbu+UY0jToP09Wt5X9dRFs85+4uGnHu0IgdK1aM=";
};

nativeBuildInputs = [ makeWrapper ];

dontUnpack = true;

installPhase = ''
mkdir -p $out/share/java/ $out/bin/
cp $src $out/share/java/${pname}.jar
makeWrapper ${jre}/bin/java $out/bin/${pname} \
--add-flags "-jar $out/share/java/${pname}.jar"
'';

meta = {
homepage = "https://jreleaser.org/";
description = "Release projects quickly and easily";
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.i-al-istannen ];
mainProgram = "jreleaser-cli";
};
}

0 comments on commit 3660d6b

Please sign in to comment.