depot/third_party/nixpkgs/pkgs/tools/networking/proxychains-ng/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
852 B
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "proxychains-ng";
version = "4.17";
src = fetchFromGitHub {
owner = "rofl0r";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cHRWPQm6aXsror0z+S2Ddm7w14c1OvEruDublWsvnXs=";
};
patches = [
# https://github.com/NixOS/nixpkgs/issues/136093
./swap-priority-4-and-5-in-get_config_path.patch
];
installFlags = [
"install-config"
"install-zsh-completion"
];
meta = with lib; {
description = "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 ++ [ "aarch64-darwin" ];
};
}