2017-02-01 11:02:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libevent }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pkg = "redsocks";
|
|
|
|
version = "0.5";
|
|
|
|
in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-02-01 11:02:10 +01:00
|
|
|
name = "${pkg}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darkk";
|
|
|
|
repo = pkg;
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "170cpvvivb6y2kwsqj9ppx5brgds9gkn8mixrnvj8z9c15xhvplm";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/{bin,share}
|
|
|
|
mv redsocks $out/bin
|
|
|
|
mv doc $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Transparent redirector of any TCP connection to proxy";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://darkk.net.ru/redsocks/";
|
2017-02-01 11:02:10 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2018-07-29 08:58:50 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ekleog ];
|
2017-09-22 16:24:29 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-02-01 11:02:10 +01:00
|
|
|
};
|
|
|
|
}
|