depot/third_party/nixpkgs/pkgs/tools/networking/redsocks/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

30 lines
695 B
Nix

{ lib, stdenv, fetchFromGitHub, libevent }:
stdenv.mkDerivation rec {
pname = "redsocks";
version = "0.5";
src = fetchFromGitHub {
owner = "darkk";
repo = "redsocks";
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/";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.ekleog ];
platforms = lib.platforms.linux;
};
}