Merge pull request #301914 from I-Al-Istannen/pkg/jreleaser-cli

jreleaser-cli: init at 1.13.1
This commit is contained in:
Jonas Heinrich 2024-08-23 16:46:46 +02:00 committed by GitHub
commit 3660d6b3cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

View File

@ -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 = "nixpkgs@mrinalpurohit.in";
matrix = "@iammrinal0:nixos.dev";

View File

@ -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";
};
}