aboutsummaryrefslogtreecommitdiff
path: root/packages/zenithproxy
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-04-18 19:26:06 -0700
committerCaroline Larimore <caroline@larimo.re>2025-04-18 19:29:41 -0700
commitf3e7a5145953de01c0cbadd2b0bd2ff0887e2fa8 (patch)
tree78abfdc070fb670412d0b910776967361164e742 /packages/zenithproxy
parenta5541807439f4cacd538d37dca64518b565e42da (diff)
package: zenithproxy
Diffstat (limited to 'packages/zenithproxy')
-rw-r--r--packages/zenithproxy/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/zenithproxy/default.nix b/packages/zenithproxy/default.nix
new file mode 100644
index 0000000..7c0bf09
--- /dev/null
+++ b/packages/zenithproxy/default.nix
@@ -0,0 +1,39 @@
+{ lib, pkgs, stdenv, ... }:
+
+let
+ zenithproxy-launcher = stdenv.mkDerivation rec {
+ pname = "zenithproxy-launcher";
+ version = "v3";
+
+ src = pkgs.fetchzip {
+ url = "https://github.com/rfresh2/ZenithProxy/releases/download/launcher-${version}/ZenithProxy-launcher-linux-amd64.zip";
+ hash = "sha256-ImoPNNxn3kpOWGkXwgQBAj/dJlK9BR50PSJnTwUVxU8=";
+ };
+
+ installPhase = ''
+ runHook preInstall
+ install -Dm755 launch -t $out/bin
+ runHook postInstall
+ '';
+ };
+in pkgs.buildFHSEnv {
+ name = "zenithproxy";
+
+ targetPkgs = (pkgs: with pkgs; [
+ zenithproxy-launcher
+ zlib
+ ]);
+
+ runScript = pkgs.writeShellScript "zenithproxy-wrapper" ''
+ rm -f ./launch
+ cp "${zenithproxy-launcher}/bin/launch" ./launch
+ shift; exec ./launch "$@"
+ '';
+
+ meta = {
+ description = "2b2t minecraft proxy / bot";
+ homepage = "https://github.com/rfresh2/ZenithProxy";
+ license = lib.licenses.agpl3Only;
+ maintainers = with lib.maintainers; [ CartConnoisseur ];
+ };
+}