nixpkgs/pkgs/by-name/re/reposilite/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-18 17:06:47 +00:00
{ stdenv, lib, fetchurl, makeWrapper, jre_headless }:
stdenv.mkDerivation (finalAttrs: {
pname = "Reposilite";
2024-11-23 10:31:54 +00:00
version = "3.5.19";
2024-06-18 17:06:47 +00:00
src = fetchurl {
url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
2024-11-23 10:31:54 +00:00
hash = "sha256-EA8YCJy7iQKG4FuGfmWx0NkEb5+UqklCcPEsO6DvSf4=";
2024-06-18 17:06:47 +00:00
};
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";
};
})