summary refs log tree commit diff
path: root/pkgs/tools/networking/obfs4/default.nix
blob: 93ebdeb0720c11d1779964071b9b3b3682c9311d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchgit, buildGoModule, Security }:

buildGoModule rec {
  pname = "obfs4";
  version = "0.0.10";

  src = fetchgit {
    url = meta.repositories.git;
    rev = "refs/tags/${pname}proxy-${version}";
    sha256 = "05aqmw8x8s0yqyqmdj5zcsq06gsbcmrlcd52gaqm20m1pg9503ad";
  };

  modSha256 = "150kg22kznrdj5icjxk3qd70g7wpq8zd2zklw1y2fgvrggw8zvyv";

  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

  meta = with stdenv.lib; {
    description = "A pluggable transport proxy";
    homepage = https://www.torproject.org/projects/obfsproxy;
    repositories.git = https://git.torproject.org/pluggable-transports/obfs4.git;
    maintainers = with maintainers; [ phreedom thoughtpolice ];
  };
}