tmuxPlugins.catppucin: unstable-2024-05-16 -> 2.1.2 (#379030)
[NixPkgs.git] / pkgs / by-name / re / reposilite / package.nix
blob426da3db55eb2359f0ab9d0d80ba0297a513ee73
2   stdenv,
3   lib,
4   fetchurl,
5   makeWrapper,
6   jre_headless,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "Reposilite";
11   version = "3.5.20";
13   src = fetchurl {
14     url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
15     hash = "sha256-IdUHtulkSKvXatAs+BmzXgwv9oJz1XeRVtpEyIZ7BY4=";
16   };
18   dontUnpack = true;
20   nativeBuildInputs = [ makeWrapper ];
22   installPhase = ''
23     runHook preInstall
25     mkdir -p $out/lib
26     cp $src $out/lib/reposilite
27     makeWrapper ${jre_headless}/bin/java $out/bin/reposilite \
28       --add-flags "-Xmx40m -jar $out/lib/reposilite"
30     runHook postInstall
31   '';
33   meta = {
34     description = "Lightweight and easy-to-use repository management software dedicated for the Maven based artifacts in the JVM ecosystem";
35     homepage = "https://github.com/dzikoysk/reposilite";
36     sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
37     license = lib.licenses.asl20;
38     maintainers = with lib.maintainers; [ jamalam ];
39     inherit (jre_headless.meta) platforms;
40     mainProgram = "reposilite";
41   };