2021-02-16 17:04:54 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "proxychains";
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "4.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haad";
|
2021-02-16 17:04:54 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "${pname}-${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "083xdg6fsn8c2ns93lvy794rixxq8va6jdf99w1z0xi4j7f1nyjw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/136093
|
|
|
|
./swap-priority-4-and-5-in-get_config_path.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2021-02-16 17:04:54 +00:00
|
|
|
# Suppress compiler warning. Remove it when upstream fix arrives
|
|
|
|
substituteInPlace Makefile --replace "-Werror" "-Werror -Wno-stringop-truncation"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
installFlags = [
|
|
|
|
"install-config"
|
|
|
|
];
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Proxifier for SOCKS proxies";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://proxychains.sourceforge.net";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "proxychains4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|