nixpkgs/pkgs/tools/networking/proxychains/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
875 B
Nix
Raw Normal View History

2021-02-13 19:48:50 +00:00
{ lib
, stdenv
, fetchFromGitHub
}:
2016-07-05 11:24:21 +00:00
stdenv.mkDerivation rec {
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;
rev = "${pname}-${version}";
2021-02-13 19:48:50 +00:00
sha256 = "083xdg6fsn8c2ns93lvy794rixxq8va6jdf99w1z0xi4j7f1nyjw";
};
patches = [
# https://github.com/NixOS/nixpkgs/issues/136093
./swap-priority-4-and-5-in-get_config_path.patch
];
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"
'';
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; {
description = "Proxifier for SOCKS proxies";
homepage = "https://proxychains.sourceforge.net";
2021-02-13 19:48:50 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}