1 { lib, buildGoModule, fetchFromGitLab, installShellFiles }:
7 src = fetchFromGitLab {
8 domain = "gitlab.torproject.org";
10 owner = "anti-censorship/pluggable-transports";
11 # We don't use pname = lyrebird and we use the old obfs4 name as the first
12 # will collide with lyrebird Gtk3 program.
14 rev = "lyrebird-${version}";
15 hash = "sha256-2qBSmAsaR3hfxuoR5U5UAFQAepUOEUnIGoxc/GZ5LmY=";
18 vendorHash = "sha256-O8CsvpwL9cfipl4M0BquSnG9tBrt/+i+i80OYk2mNiI=";
20 ldflags = [ "-s" "-w" ];
22 nativeBuildInputs = [ installShellFiles ];
25 installManPage doc/obfs4proxy.1
26 ln -s $out/share/man/man1/{obfs4proxy,lyrebird}.1
30 description = "Circumvents censorship by transforming Tor traffic between clients and bridges";
32 Obfs4proxy is a tool that attempts to circumvent censorship by
33 transforming the Tor traffic between the client and the bridge.
34 This way censors, who usually monitor traffic between the client
35 and the bridge, will see innocent-looking transformed traffic
36 instead of the actual Tor traffic. obfs4proxy implements the
37 obfsucation protocols obfs2, obfs3, and obfs4. It is written in
38 Go and is compliant with the Tor pluggable transports
39 specification, and its modular architecture allows it to support
40 multiple pluggable transports.
42 homepage = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird";
43 maintainers = with maintainers; [ thoughtpolice ];
44 mainProgram = "lyrebird";
45 changelog = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/-/raw/${src.rev}/ChangeLog";
46 license = with lib.licenses; [ bsd2 bsd3 gpl3 ];