mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-22 21:31:03 +00:00
Merge pull request #11 from NotAShelf/drop-reposilite
pkgs/reposilite-bin: drop
This commit is contained in:
commit
72638aeb58
3 changed files with 23 additions and 59 deletions
36
README.md
36
README.md
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
## 📦 Packages
|
## 📦 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 |
|
| 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. |
|
| mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. |
|
||||||
| mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports |
|
| 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. |
|
| 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-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) |
|
| 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
|
### 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
|
Regardless of your setup,you may want to add the
|
||||||
on each pull. You may follow the example below to add the binary cache to your system.
|
[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
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
@ -56,8 +58,8 @@ inputs = {
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
After adding the input, you can consume the [exposed packages](#-packages) in your system configuration.
|
After adding the input, you can consume the [exposed packages](#-packages) in
|
||||||
An example `flake.nix` would be as follows:
|
your system configuration. An example `flake.nix` would be as follows:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
# flake.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
|
```nix
|
||||||
{pkgs, inputs, ...}: {
|
{pkgs, inputs, ...}: {
|
||||||
|
@ -111,8 +114,9 @@ Where you can then add the relevant package to your `environment.systemPackages`
|
||||||
|
|
||||||
### Nix
|
### Nix
|
||||||
|
|
||||||
If you are using Nix on a non-NixOS distro, you may `nix run` to try out packages, or `nix profile install` to
|
If you are using Nix on a non-NixOS distro, you may `nix run` to try out
|
||||||
install them on your system profile. If using home-manager on non-NixOS, I recommend using `home.packages` instead.
|
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
|
```console
|
||||||
nix profile install github:notashelf/nyxpkgs#<package>
|
nix profile install github:notashelf/nyxpkgs#<package>
|
||||||
|
@ -120,8 +124,9 @@ nix profile install github:notashelf/nyxpkgs#<package>
|
||||||
|
|
||||||
### NixOS/Home-manager (no flakes)
|
### 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
|
If you are not using flakes, the above instructions will not apply. You may
|
||||||
consume in your system configuration as follows:
|
obtain the source as a tarball to consume in your system configuration as
|
||||||
|
follows:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
|
@ -141,6 +146,11 @@ PRs are always welcome.
|
||||||
|
|
||||||
## 🫂 Credits
|
## 🫂 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.
|
||||||
|
|
|
@ -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 {};
|
mpv-history = callPackage ./applications/video/mpv/scripts/save-history {};
|
||||||
mastodon-bird-ui = callPackage ./applications/social/mastodon-bird-ui {};
|
mastodon-bird-ui = callPackage ./applications/social/mastodon-bird-ui {};
|
||||||
headscale-ui = callPackage ./applications/networking/headscale-ui {};
|
headscale-ui = callPackage ./applications/networking/headscale-ui {};
|
||||||
reposilite-bin = callPackage ./applications/networking/reposilite-bin {
|
|
||||||
javaJdk = pkgs.openjdk_headless;
|
|
||||||
};
|
|
||||||
|
|
||||||
# patched packages
|
# patched packages
|
||||||
# those packages usually follow nixpkgs, so they need neither pinning
|
# those packages usually follow nixpkgs, so they need neither pinning
|
||||||
|
|
Loading…
Reference in a new issue