linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / redsocks / default.nix
blobb609cce90bc54881a74a1e75b6419ad17442143e
1 { lib, stdenv, fetchFromGitHub, libevent }:
3 let
4   pkg = "redsocks";
5   version = "0.5";
6 in
7 stdenv.mkDerivation {
8   name = "${pkg}-${version}";
10   src = fetchFromGitHub {
11     owner = "darkk";
12     repo = pkg;
13     rev = "release-${version}";
14     sha256 = "170cpvvivb6y2kwsqj9ppx5brgds9gkn8mixrnvj8z9c15xhvplm";
15   };
17   installPhase =
18     ''
19       mkdir -p $out/{bin,share}
20       mv redsocks $out/bin
21       mv doc $out/share
22     '';
24   buildInputs = [ libevent ];
26   meta = {
27     description = "Transparent redirector of any TCP connection to proxy";
28     homepage = "http://darkk.net.ru/redsocks/";
29     license = lib.licenses.asl20;
30     maintainers = [ lib.maintainers.ekleog ];
31     platforms = lib.platforms.linux;
32   };