1 { lib, stdenv, fetchFromGitHub, libevent }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "release-${version}";
11 sha256 = "170cpvvivb6y2kwsqj9ppx5brgds9gkn8mixrnvj8z9c15xhvplm";
16 mkdir -p $out/{bin,share}
21 buildInputs = [ libevent ];
24 description = "Transparent redirector of any TCP connection to proxy";
25 homepage = "https://darkk.net.ru/redsocks/";
26 license = lib.licenses.asl20;
27 maintainers = [ lib.maintainers.ekleog ];
28 platforms = lib.platforms.linux;
29 mainProgram = "redsocks";