diff options
author | Zenithal <i@zenithal.me> | 2022-01-13 02:04:39 +0800 |
---|---|---|
committer | Zenithal <i@zenithal.me> | 2022-01-14 01:25:03 +0800 |
commit | 89b41c0f31844ee58bedbdb6759066abbfcbcbe1 (patch) | |
tree | 86226a2070ee799bf7e20452feb93b2f87ffce27 /pkgs/tools/networking | |
parent | eeb2b2e3a94feabd208a3674b67310bdfa801818 (diff) |
proxychains-ng: fix build on aarch64-darwin
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/proxychains-ng/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/networking/proxychains-ng/default.nix b/pkgs/tools/networking/proxychains-ng/default.nix index cc1cc9daf656d..6a131af031176 100644 --- a/pkgs/tools/networking/proxychains-ng/default.nix +++ b/pkgs/tools/networking/proxychains-ng/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch }: stdenv.mkDerivation rec { @@ -14,11 +15,20 @@ stdenv.mkDerivation rec { sha256 = "128d502y8pn7q2ls6glx9bvibwzfh321sah5r5li6b6iywh2zqlc"; }; + patches = [ + # Fix build on aarch64-darwin, should be removed in v4.16 + # https://github.com/rofl0r/proxychains-ng/issues/400 + (fetchpatch { + url = "https://github.com/rofl0r/proxychains-ng/commit/7de7dd0de1ff387a627620ac3482b4cd9b3fba95.patch?full_index=1"; + sha256 = "sha256-m3a4Jal8L7w+xA0OJTPU68ILTaKgiITgsM1WVxuMce0="; + }) + ]; + meta = with lib; { description = "A preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies"; homepage = "https://github.com/rofl0r/proxychains-ng"; license = licenses.gpl2Plus; maintainers = with maintainers; [ zenithal ]; - platforms = platforms.linux; + platforms = platforms.linux ++ [ "aarch64-darwin" ]; }; } |