From fd6b1b92bda3fe445ebc191e1d8b61cafc58e6cc Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 20 Jun 2023 19:22:38 +0000 Subject: [PATCH] obfs4: 0.0.14 -> 0.1.0 (#238430) Rename repo and meta.mainProgram to lyrebird. Don't rename attribute name and pname, as this will collide with the Gtk3 program lyrebird: https://github.com/chxrlt/lyrebird --- pkgs/tools/networking/obfs4/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/networking/obfs4/default.nix b/pkgs/tools/networking/obfs4/default.nix index edaf6d27c8d8..b2317ef44c2f 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 ]; }; }