Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
jre_headless,
|
|
linkFarm,
|
|
makeWrapper,
|
|
nixosTests,
|
|
plugins ? [ ],
|
|
}:
|
|
let
|
|
pluginsDir = linkFarm "reposilite-plugins" (
|
|
map (p: {
|
|
name = (builtins.parseDrvName p.name).name + ".jar";
|
|
path = p.outPath or p;
|
|
}) plugins
|
|
);
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "Reposilite";
|
|
version = "3.5.25";
|
|
|
|
src = fetchurl {
|
|
url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
|
|
hash = "sha256-g1a+9TGRqRK4qcJW2ZACsiew5f27T4qkm/A+c7sVxHI=";
|
|
};
|
|
|
|
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 ${
|
|
lib.optionalString (plugins != [ ]) "--plugin-directory ${pluginsDir}"
|
|
}"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
tests = nixosTests.reposilite;
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
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
|
|
uku3lig
|
|
];
|
|
inherit (jre_headless.meta) platforms;
|
|
mainProgram = "reposilite";
|
|
};
|
|
})
|