mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
36 lines
917 B
Nix
36 lines
917 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
jre,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "jreleaser-cli";
|
|
version = "1.14.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jreleaser/jreleaser/releases/download/v${version}/jreleaser-tool-provider-${version}.jar";
|
|
hash = "sha256-LkkVxC3/0s468O84sgp7cNX53QRzdmUjCw+cgSWa5U0=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|