9 stdenv.mkDerivation (finalAttrs: {
10 pname = "quarkus-cli";
14 url = "https://github.com/quarkusio/quarkus/releases/download/${finalAttrs.version}/quarkus-cli-${finalAttrs.version}.tar.gz";
15 hash = "sha256-Nm0tu4YYjD1NH4n0qV1YZl7ZXfN5jccFV6EPn5mPu+8=";
18 nativeBuildInputs = [ makeWrapper ];
23 mkdir -p $out/{lib,bin}
24 cp ./lib/quarkus-cli-${finalAttrs.version}-runner.jar $out/lib
26 makeWrapper ${jdk}/bin/java $out/bin/quarkus \
27 --add-flags "-classpath $out/lib/quarkus-cli-${finalAttrs.version}-runner.jar" \
28 --add-flags "-Dapp.name=quarkus" \
29 --add-flags "-Dapp-pid='\$\$'" \
30 --add-flags "-Dapp.repo=$out/lib" \
31 --add-flags "-Dapp.home=$out" \
32 --add-flags "-Dbasedir=$out" \
33 --add-flags "io.quarkus.cli.Main"
39 description = "Quarkus is a Kubernetes-native Java framework tailored for GraalVM and HotSpot, crafted from best-of-breed Java libraries and standards";
40 homepage = "https://quarkus.io";
41 changelog = "https://github.com/quarkusio/quarkus/releases/tag/${finalAttrs.version}";
42 license = licenses.asl20;
43 maintainers = [ maintainers.vinetos ];
44 platforms = platforms.all;
45 mainProgram = "quarkus";
46 sourceProvenance = with sourceTypes; [ binaryBytecode ];