From 55d48b15ca0b546e39ac646b8f25db4b972d04a7 Mon Sep 17 00:00:00 2001 From: "James (Jamalam)" Date: Tue, 18 Jun 2024 18:05:53 +0100 Subject: [PATCH 1/2] maintainers: add jamalam --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8835e8c91403..5664015cf7fd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8891,6 +8891,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"; From 58a9a97b34fab6eef1b4fd043a5abcf679e70aee Mon Sep 17 00:00:00 2001 From: "James (Jamalam)" Date: Tue, 18 Jun 2024 18:06:47 +0100 Subject: [PATCH 2/2] reposilite: init at 3.5.13 --- pkgs/by-name/re/reposilite/package.nix | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/re/reposilite/package.nix diff --git a/pkgs/by-name/re/reposilite/package.nix b/pkgs/by-name/re/reposilite/package.nix new file mode 100644 index 000000000000..8ae98f2c292b --- /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.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"; + }; +})