diff options
author | Bobby Rong <rjl931189261@126.com> | 2022-01-14 10:16:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 10:16:51 +0800 |
commit | da7cf3749173ba751e11554b1eaf2ddad089be1c (patch) | |
tree | 58419e90fa90538945854ca83789557db4520a64 /pkgs/tools/networking | |
parent | 1ea35d50d84aa6e85a99a4ed593df7ed629b3974 (diff) | |
parent | 89b41c0f31844ee58bedbdb6759066abbfcbcbe1 (diff) |
Merge pull request #154790 from ZenithalHourlyRate/proxychains-ng-4.15-2
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" ]; }; } |