about summary refs log tree commit diff
path: root/pkgs/tools/networking/obfs4/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/obfs4/default.nix')
-rw-r--r--pkgs/tools/networking/obfs4/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/tools/networking/obfs4/default.nix b/pkgs/tools/networking/obfs4/default.nix
index edaf6d27c8d84..b2317ef44c2f2 100644
--- a/pkgs/tools/networking/obfs4/default.nix
+++ b/pkgs/tools/networking/obfs4/default.nix
@@ -2,18 +2,20 @@
 
 buildGoModule rec {
   pname = "obfs4";
-  version = "0.0.14";
+  version = "0.1.0";
 
   src = fetchFromGitLab {
     domain = "gitlab.torproject.org";
     group = "tpo";
     owner = "anti-censorship/pluggable-transports";
-    repo = "obfs4";
-    rev = "obfs4proxy-${version}";
-    sha256 = "sha256-/d1qub/mhEzzLQFytgAlhz8ukIC9d+GPK2Hfi3NMv+M=";
+    # We don't use pname = lyrebird and we use the old obfs4 name as the first
+    # will collide with lyrebird Gtk3 program.
+    repo = "lyrebird";
+    rev = "lyrebird-${version}";
+    hash = "sha256-2qBSmAsaR3hfxuoR5U5UAFQAepUOEUnIGoxc/GZ5LmY=";
   };
 
-  vendorHash = "sha256-7NF3yMouhjSM9SBNKHkeWV7qy0XTGnepEX28kBpbgdk=";
+  vendorHash = "sha256-O8CsvpwL9cfipl4M0BquSnG9tBrt/+i+i80OYk2mNiI=";
 
   ldflags = [ "-s" "-w" ];
 
@@ -21,6 +23,7 @@ buildGoModule rec {
 
   postInstall = ''
     installManPage doc/obfs4proxy.1
+    ln -s $out/share/man/man1/{obfs4proxy,lyrebird}.1
   '';
 
   meta = with lib; {
@@ -36,10 +39,10 @@ buildGoModule rec {
       specification, and its modular architecture allows it to support
       multiple pluggable transports.
     '';
-    homepage = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/obfs4";
+    homepage = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird";
     maintainers = with maintainers; [ thoughtpolice ];
-    mainProgram = "obfs4proxy";
-    changelog = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/obfs4/-/raw/${src.rev}/ChangeLog";
+    mainProgram = "lyrebird";
+    changelog = "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/-/raw/${src.rev}/ChangeLog";
     license = with lib.licenses; [ bsd2 bsd3 gpl3 ];
   };
 }