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