mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, makeWrapper
|
|
, jdk
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "quarkus-cli";
|
|
version = "3.12.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/quarkusio/quarkus/releases/download/${finalAttrs.version}/quarkus-cli-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-2v6JCLmLan4e6aTzz82S3hb7kq55889Qm9oockLHqtI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{lib,bin}
|
|
cp ./lib/quarkus-cli-${finalAttrs.version}-runner.jar $out/lib
|
|
|
|
makeWrapper ${jdk}/bin/java $out/bin/quarkus \
|
|
--add-flags "-classpath $out/lib/quarkus-cli-${finalAttrs.version}-runner.jar" \
|
|
--add-flags "-Dapp.name=quarkus" \
|
|
--add-flags "-Dapp-pid='\$\$'" \
|
|
--add-flags "-Dapp.repo=$out/lib" \
|
|
--add-flags "-Dapp.home=$out" \
|
|
--add-flags "-Dbasedir=$out" \
|
|
--add-flags "io.quarkus.cli.Main"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Quarkus is a Kubernetes-native Java framework tailored for GraalVM and HotSpot, crafted from best-of-breed Java libraries and standards";
|
|
homepage = "https://quarkus.io";
|
|
changelog = "https://github.com/quarkusio/quarkus/releases/tag/${finalAttrs.version}";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.vinetos ];
|
|
platforms = platforms.all;
|
|
mainProgram = "quarkus";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
};
|
|
})
|