From 92c4e657b1a5ea2e3d153dcd253b75027d86c6b5 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 21 Jul 2024 22:47:09 +0300 Subject: [PATCH] pkgs/reposilite-bin: drop --- README.md | 36 ++++++++++------ .../networking/reposilite-bin/default.nix | 43 ------------------- pkgs/top-level.nix | 3 -- 3 files changed, 23 insertions(+), 59 deletions(-) delete mode 100644 pkgs/applications/networking/reposilite-bin/default.nix diff --git a/README.md b/README.md index 342461e..4242a4c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ ## 📦 Packages -There are several packages exposed by this flake. Each directory in `pkgs` contains a description of the package inside its README. +There are several packages exposed by this flake. Each directory in `pkgs` +contains a description of the package inside its README. | Package | Description | | :----------------- | :------------------------------------------------------------------------------------------------: | @@ -17,7 +18,6 @@ There are several packages exposed by this flake. Each directory in `pkgs` conta | mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. | | mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports | | rat | Linux shell port of the horizontally spinning rat meme, complete with soundtrack and spin counter. | -| reposilite-bin | A derivation for the reposilite maven repository. | | rofi-calc-wayland | A wayland patched version of [rofi-calc](https://github.com/svenstaro/rofi-calc) | | rofi-emoji-wayland | A wayland patched version of [rofi-emoji](https://github.com/Mange/rofi-emoji) | @@ -25,8 +25,10 @@ There are several packages exposed by this flake. Each directory in `pkgs` conta ### Binary Cache -Regardless of your setup,you may want to add the [binary cache](https://app.cachix.org/cache/nyx) to your substituters to avoid building the provided packages -on each pull. You may follow the example below to add the binary cache to your system. +Regardless of your setup,you may want to add the +[binary cache](https://app.cachix.org/cache/nyx) to your substituters to avoid +building the provided packages on each pull. You may follow the example below to +add the binary cache to your system. ```nix nix.settings = { @@ -56,8 +58,8 @@ inputs = { }; ``` -After adding the input, you can consume the [exposed packages](#-packages) in your system configuration. -An example `flake.nix` would be as follows: +After adding the input, you can consume the [exposed packages](#-packages) in +your system configuration. An example `flake.nix` would be as follows: ```nix # flake.nix @@ -98,7 +100,8 @@ An example `flake.nix` would be as follows: } ``` -Where you can then add the relevant package to your `environment.systemPackages` or `home.packages` +Where you can then add the relevant package to your `environment.systemPackages` +or `home.packages` ```nix {pkgs, inputs, ...}: { @@ -111,8 +114,9 @@ Where you can then add the relevant package to your `environment.systemPackages` ### Nix -If you are using Nix on a non-NixOS distro, you may `nix run` to try out packages, or `nix profile install` to -install them on your system profile. If using home-manager on non-NixOS, I recommend using `home.packages` instead. +If you are using Nix on a non-NixOS distro, you may `nix run` to try out +packages, or `nix profile install` to install them on your system profile. If +using home-manager on non-NixOS, I recommend using `home.packages` instead. ```console nix profile install github:notashelf/nyxpkgs# @@ -120,8 +124,9 @@ nix profile install github:notashelf/nyxpkgs# ### NixOS/Home-manager (no flakes) -If you are not using flakes, the above instructions will not apply. You may obtain the source as a tarball to -consume in your system configuration as follows: +If you are not using flakes, the above instructions will not apply. You may +obtain the source as a tarball to consume in your system configuration as +follows: ```nix {pkgs, ...}: let @@ -141,6 +146,11 @@ PRs are always welcome. ## 🫂 Credits -The repository structure is mostly borrowed from [@fufexan](https://github.com/fufexan)'s [nix-gaming](https://github.com/fufexan/nix-gaming). +The repository structure is mostly borrowed from +[@fufexan](https://github.com/fufexan)'s +[nix-gaming](https://github.com/fufexan/nix-gaming). -[^1]: Foot has broken fullscreen transparency on 1.15, which looks **really** ugly with padding. The author is dead set on not fixing it, because it's broken on one wayland compositor that a total of 7 people use. +[^1]: + Foot has broken fullscreen transparency on 1.15, which looks **really** + ugly with padding. The author is dead set on not fixing it, because it's broken + on one wayland compositor that a total of 7 people use. diff --git a/pkgs/applications/networking/reposilite-bin/default.nix b/pkgs/applications/networking/reposilite-bin/default.nix deleted file mode 100644 index d8c254a..0000000 --- a/pkgs/applications/networking/reposilite-bin/default.nix +++ /dev/null @@ -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]; - }; - }) diff --git a/pkgs/top-level.nix b/pkgs/top-level.nix index c1e000c..6d38163 100644 --- a/pkgs/top-level.nix +++ b/pkgs/top-level.nix @@ -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