mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-02 15:03:34 +00:00
pkgs/reposilite-bin: drop
This commit is contained in:
parent
50b7f52775
commit
92c4e657b1
3 changed files with 23 additions and 59 deletions
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
makeWrapper,
|
||||
openjdk_headless,
|
||||
javaJdk ? openjdk_headless,
|
||||
maxMemory ? "40m",
|
||||
...
|
||||
}: let
|
||||
jdk = javaJdk;
|
||||
in
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "reposilite-bin";
|
||||
version = "3.5.10";
|
||||
src = builtins.fetchurl {
|
||||
url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
|
||||
sha256 = "1wqgy94sslg3jm2lzzzzl6m6x24q2z70dprl1si9mid6r74jxlh5";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
|
||||
phases = ["installPhase"];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# wrap the reposilite jar with the JAVA_HOME environment variable and memory flags
|
||||
# maxMemory, by default is 40m, which is a reasonable default, but you may increase
|
||||
# it if you experience a higher load
|
||||
makeWrapper ${jdk}/bin/java $out/bin/reposilite \
|
||||
--set JAVA_HOME ${jdk.home} \
|
||||
--add-flags "-Xmx${maxMemory} -jar $src"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A lightweight repository manager for Maven artifacts";
|
||||
homepage = "https://reposilite.com";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "reposilite";
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
};
|
||||
})
|
|
@ -18,9 +18,6 @@
|
|||
mpv-history = callPackage ./applications/video/mpv/scripts/save-history {};
|
||||
mastodon-bird-ui = callPackage ./applications/social/mastodon-bird-ui {};
|
||||
headscale-ui = callPackage ./applications/networking/headscale-ui {};
|
||||
reposilite-bin = callPackage ./applications/networking/reposilite-bin {
|
||||
javaJdk = pkgs.openjdk_headless;
|
||||
};
|
||||
|
||||
# patched packages
|
||||
# those packages usually follow nixpkgs, so they need neither pinning
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue