diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-05-03 14:08:57 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-05-03 14:08:57 -0700 |
| commit | c4ab0d6d442ca05f0c64925b00594d7684a7a891 (patch) | |
| tree | 6bb27aca7b3ad132a76207c5c2fa461e1394cb8e /packages/zenithproxy | |
| parent | 2ce64b8273bf239c2c6c3a65e3372c4344933ee5 (diff) | |
package: patch zenithproxy launcher elf
Diffstat (limited to 'packages/zenithproxy')
| -rw-r--r-- | packages/zenithproxy/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/zenithproxy/default.nix b/packages/zenithproxy/default.nix index 7c0bf09..c468145 100644 --- a/packages/zenithproxy/default.nix +++ b/packages/zenithproxy/default.nix @@ -1,7 +1,7 @@ -{ lib, pkgs, stdenv, ... }: +{ lib, pkgs, stdenvNoCC, autoPatchelfHook, ... }: let - zenithproxy-launcher = stdenv.mkDerivation rec { + zenithproxy-launcher = stdenvNoCC.mkDerivation rec { pname = "zenithproxy-launcher"; version = "v3"; @@ -9,6 +9,12 @@ let url = "https://github.com/rfresh2/ZenithProxy/releases/download/launcher-${version}/ZenithProxy-launcher-linux-amd64.zip"; hash = "sha256-ImoPNNxn3kpOWGkXwgQBAj/dJlK9BR50PSJnTwUVxU8="; }; + + buildInputs = with pkgs; [ + zlib + ]; + + nativeBuildInputs = [ autoPatchelfHook ]; installPhase = '' runHook preInstall @@ -21,7 +27,6 @@ in pkgs.buildFHSEnv { targetPkgs = (pkgs: with pkgs; [ zenithproxy-launcher - zlib ]); runScript = pkgs.writeShellScript "zenithproxy-wrapper" '' |