2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "proxychains-ng";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "4.17";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rofl0r";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-cHRWPQm6aXsror0z+S2Ddm7w14c1OvEruDublWsvnXs=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
2022-10-21 18:38:19 +00:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/136093
|
|
|
|
./swap-priority-4-and-5-in-get_config_path.patch
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"install-config"
|
2024-05-15 15:35:15 +00:00
|
|
|
"install-zsh-completion"
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/rofl0r/proxychains-ng";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ zenithal ];
|
2022-01-19 23:45:15 +00:00
|
|
|
platforms = platforms.linux ++ [ "aarch64-darwin" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|