diff options
Diffstat (limited to 'pkgs/by-name/re/reposilite/package.nix')
-rw-r--r-- | pkgs/by-name/re/reposilite/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/re/reposilite/package.nix b/pkgs/by-name/re/reposilite/package.nix new file mode 100644 index 0000000000000..27f10aa985620 --- /dev/null +++ b/pkgs/by-name/re/reposilite/package.nix @@ -0,0 +1,36 @@ +{ stdenv, lib, fetchurl, makeWrapper, jre_headless }: + +stdenv.mkDerivation (finalAttrs: { + pname = "Reposilite"; + version = "3.5.14"; + + src = fetchurl { + url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar"; + hash = "sha256-qZXYpz6SBXDBj8c0IZkfVgxEFe/+DxMpdhLJsjks8cM="; + }; + + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib + cp $src $out/lib/reposilite + makeWrapper ${jre_headless}/bin/java $out/bin/reposilite \ + --add-flags "-Xmx40m -jar $out/lib/reposilite" + + runHook postInstall + ''; + + meta = { + description = "Lightweight and easy-to-use repository management software dedicated for the Maven based artifacts in the JVM ecosystem"; + homepage = "https://github.com/dzikoysk/reposilite"; + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ jamalam ]; + inherit (jre_headless.meta) platforms; + mainProgram = "reposilite"; + }; +}) |