feat: add packages from flake
This commit is contained in:
parent
3fc3cf84b1
commit
e7ba863c59
8 changed files with 275 additions and 3 deletions
38
pkgs/reposilite.nix
Normal file
38
pkgs/reposilite.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
jre_headless,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
name = "reposilite";
|
||||
version = "3.5.16";
|
||||
|
||||
src = fetchurl {
|
||||
url = with finalAttrs; "https://maven.reposilite.com/releases/com/reposilite/reposilite/${version}/reposilite-${version}-all.jar";
|
||||
hash = "sha256-zketAvn0XgBRAS+Bb3KcUcpdydbQQruS+gZ5Bfrjiig=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = with finalAttrs; ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/share/${name}
|
||||
cp ${src} $out/share/${name}/${name}.jar
|
||||
makeWrapper ${jre_headless}/bin/java $out/bin/${name} --add-flags "-jar $out/share/${name}/${name}.jar"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight and easy-to-use repository management software dedicated for the Maven based artifacts in the JVM ecosystem";
|
||||
homepage = "https://reposilite.com/";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "reposilite";
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue