2021-02-13 19:48:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2016-07-05 11:24:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "proxychains";
|
2021-02-13 19:48:50 +00:00
|
|
|
version = "4.4.0";
|
2016-07-05 11:24:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haad";
|
2021-02-13 19:48:50 +00:00
|
|
|
repo = pname;
|
2019-08-15 12:41:18 +00:00
|
|
|
rev = "${pname}-${version}";
|
2021-02-13 19:48:50 +00:00
|
|
|
sha256 = "083xdg6fsn8c2ns93lvy794rixxq8va6jdf99w1z0xi4j7f1nyjw";
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
|
2022-10-11 14:19:16 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/136093
|
|
|
|
./swap-priority-4-and-5-in-get_config_path.patch
|
|
|
|
];
|
|
|
|
|
2016-11-25 03:30:11 +00:00
|
|
|
postPatch = ''
|
2021-02-13 19:48:50 +00:00
|
|
|
# Suppress compiler warning. Remove it when upstream fix arrives
|
|
|
|
substituteInPlace Makefile --replace "-Werror" "-Werror -Wno-stringop-truncation"
|
2016-11-25 03:30:11 +00:00
|
|
|
'';
|
2021-02-13 19:48:50 +00:00
|
|
|
|
2022-05-13 17:48:13 +00:00
|
|
|
installFlags = [
|
|
|
|
"install-config"
|
|
|
|
];
|
|
|
|
|
2021-02-13 19:48:50 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Proxifier for SOCKS proxies";
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://proxychains.sourceforge.net";
|
2021-02-13 19:48:50 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
platforms = platforms.linux;
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
}
|