Merge pull request #320832 from Jamalam360/master

reposilite: init at 3.5.13
This commit is contained in:
Masum Reza 2024-07-04 19:53:26 +05:30 committed by GitHub
commit 39a1c7c963
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 43 additions and 0 deletions

View File

@ -8960,6 +8960,13 @@
github = "jali-clarke";
githubId = 17733984;
};
jamalam = {
email = "james@jamalam.tech";
name = "jamalam";
github = "Jamalam360";
githubId = 56727311;
keys = [ { fingerprint = "B1B2 2BA0 FC39 D4B4 2240 5F55 D86C D68E 8DB2 E368"; } ];
};
james-atkins = {
name = "James Atkins";
github = "james-atkins";

View File

@ -0,0 +1,36 @@
{ stdenv, lib, fetchurl, makeWrapper, jre_headless }:
stdenv.mkDerivation (finalAttrs: {
pname = "Reposilite";
version = "3.5.13";
src = fetchurl {
url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
hash = "sha256-G9J1nOK1dM8XC+3Mj8uUnNvM5BiUPzOIRT/T5CZzvqo=";
};
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";
};
})