nixpkgs/pkgs/tools/networking/redsocks/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
695 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchFromGitHub, libevent }:
2017-02-01 10:02:10 +00:00
stdenv.mkDerivation rec {
pname = "redsocks";
2017-02-01 10:02:10 +00:00
version = "0.5";
src = fetchFromGitHub {
owner = "darkk";
repo = "redsocks";
2017-02-01 10:02:10 +00:00
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 09:19:50 +00:00
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.ekleog ];
platforms = lib.platforms.linux;
2017-02-01 10:02:10 +00:00
};
}