1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/redsocks/default.nix

34 lines
733 B
Nix
Raw Normal View History

2017-02-01 10:02:10 +00:00
{ stdenv, fetchFromGitHub, libevent }:
let
pkg = "redsocks";
version = "0.5";
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2017-02-01 10:02:10 +00: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";
homepage = http://darkk.net.ru/redsocks/;
license = stdenv.lib.licenses.asl20;
2018-07-29 07:58:50 +01:00
maintainers = [ stdenv.lib.maintainers.ekleog ];
platforms = stdenv.lib.platforms.linux;
2017-02-01 10:02:10 +00:00
};
}