2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libevent }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pkg = "redsocks";
|
|
|
|
version = "0.5";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
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";
|
|
|
|
homepage = "http://darkk.net.ru/redsocks/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.ekleog ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|