1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation rec {
7 pname = "proxychains";
8 version = "4.4.0";
9
10 src = fetchFromGitHub {
11 owner = "haad";
12 repo = pname;
13 rev = "${pname}-${version}";
14 sha256 = "083xdg6fsn8c2ns93lvy794rixxq8va6jdf99w1z0xi4j7f1nyjw";
15 };
16
17 postPatch = ''
18 # Suppress compiler warning. Remove it when upstream fix arrives
19 substituteInPlace Makefile --replace "-Werror" "-Werror -Wno-stringop-truncation"
20 '';
21
22 meta = with lib; {
23 description = "Proxifier for SOCKS proxies";
24 homepage = "http://proxychains.sourceforge.net";
25 license = licenses.gpl2Plus;
26 maintainers = with maintainers; [ fab ];
27 platforms = platforms.linux;
28 };
29}