-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301914 from I-Al-Istannen/pkg/jreleaser-cli
jreleaser-cli: init at 1.13.1
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |