depot/third_party/nixpkgs/pkgs/tools/networking/redsocks/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
735 B
Nix

{ stdenv, fetchFromGitHub, libevent }:
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/";
license = stdenv.lib.licenses.asl20;
maintainers = [ stdenv.lib.maintainers.ekleog ];
platforms = stdenv.lib.platforms.linux;
};
}