mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-11 11:19:36 +00:00
treewide: start transitioning to nixpkgs package structure
This commit is contained in:
parent
5244163a47
commit
d52fa53348
16 changed files with 190 additions and 63 deletions
38
pkgs/applications/networking/reposilite-bin/default.nix
Normal file
38
pkgs/applications/networking/reposilite-bin/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
javaJdk,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs) stdenv;
|
||||
|
||||
jdk = javaJdk;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "reposilite-bin";
|
||||
version = "3.5.8";
|
||||
|
||||
jar = builtins.fetchurl {
|
||||
url = "https://maven.reposilite.com/releases/com/reposilite/reposilite/${finalAttrs.version}/reposilite-${finalAttrs.version}-all.jar";
|
||||
sha256 = "sha256:1skbbdfcbdhlhyrg1y1fimm87kq1ws6g5xy0sxaglgky9j218c0p";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
makeWrapper ${jdk}/bin/java $out/bin/reposilite \
|
||||
--add-flags "-Xmx40m -jar $jar" \
|
||||
--set JAVA_HOME ${jdk}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A lightweight repository manager for Maven artifacts";
|
||||
homepage = "https://reposilite.com";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "reposilite"; # we don't inherit pname here because it contains the -bin suffix, which the resulting binary won't have
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue