at master 40 lines 925 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "proxychains"; 9 version = "4.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "haad"; 13 repo = "proxychains"; 14 rev = "proxychains-${version}"; 15 sha256 = "083xdg6fsn8c2ns93lvy794rixxq8va6jdf99w1z0xi4j7f1nyjw"; 16 }; 17 18 patches = [ 19 # https://github.com/NixOS/nixpkgs/issues/136093 20 ./swap-priority-4-and-5-in-get_config_path.patch 21 ]; 22 23 postPatch = '' 24 # Suppress compiler warning. Remove it when upstream fix arrives 25 substituteInPlace Makefile --replace "-Werror" "-Werror -Wno-stringop-truncation" 26 ''; 27 28 installFlags = [ 29 "install-config" 30 ]; 31 32 meta = with lib; { 33 description = "Proxifier for SOCKS proxies"; 34 homepage = "https://proxychains.sourceforge.net"; 35 license = licenses.gpl2Plus; 36 maintainers = with maintainers; [ fab ]; 37 platforms = platforms.linux; 38 mainProgram = "proxychains4"; 39 }; 40}