From fcf2a956afe4e05febcf227244622dd8f788e892 Mon Sep 17 00:00:00 2001 From: Clara Engler Date: Wed, 18 Nov 2026 09:39:47 +0100 Subject: [PATCH] halloy: Enable Tor support This commit adds a new parameter to the halloy derivation called `withTor`, which is enabled by default and builds Halloy with it's built-in Tor integration realized using Arti. Halloy has been supporting this for about two years now and is to my knowledge the only IRC client that natively supports a Tor proxy without the need for a SOCKS5/HTTP proxy setup. See also: https://halloy.chat/configuration/proxy#tor --- doc/release-notes/rl-2611.section.md | 2 ++ pkgs/by-name/ha/halloy/package.nix | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/doc/release-notes/rl-2611.section.md b/doc/release-notes/rl-2611.section.md index 7619aa29d03c..101058999c8e 100644 --- a/doc/release-notes/rl-2611.section.md +++ b/doc/release-notes/rl-2611.section.md @@ -184,6 +184,8 @@ - `python3Packages.tensorflow-build` and `libtensorflow` have been removed, as they had been broken for years. Use `python3Packages.tensorflow` (`tensorflow-bin`) instead. The `withTensorflow` options of `ffmpeg` and `snips-sh` have been removed accordingly. +- `halloy` now builds with Tor proxy support by default using Arti, which can be disabled by overriding `withTor` with `false`. + - `postgresqlPackages.anonymizer` has been updated from 2.4.1 to 3.2.2. The extension must be dropped and recreated, and masking no longer runs as a superuser. See the [upgrade notes](https://postgresql-anonymizer.readthedocs.io/en/stable/UPGRADE/) for details. `pg-dump-anon` has been removed as it was removed upstream. Use `pg_dump` with a masked role instead. - `landrun` was updated to `0.1.17`, which included breaking changes, reference the [breaking changes](https://github.com/Zouuup/landrun/releases/tag/v0.1.17) section in the `landrun` release notes. diff --git a/pkgs/by-name/ha/halloy/package.nix b/pkgs/by-name/ha/halloy/package.nix index cb8da689d8d4..dbea6f7c9543 100644 --- a/pkgs/by-name/ha/halloy/package.nix +++ b/pkgs/by-name/ha/halloy/package.nix @@ -18,6 +18,11 @@ libx11, libxcb, alsa-lib, + zstd, + + # Halloy comes with native support for a Tor proxy using Arti + # https://halloy.chat/configuration/proxy#tor + withTor ? true, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -33,6 +38,8 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-S/6JHaAbT6aylj9qx40YEiMpN7Am8RFy2EpoYkbaWl4="; + buildFeatures = lib.optional withTor "tor"; + nativeBuildInputs = [ copyDesktopItems makeBinaryWrapper @@ -52,6 +59,9 @@ rustPlatform.buildRustPackage (finalAttrs: { libxcursor libxi libxcb + ] + ++ lib.optionals withTor [ + zstd ]; desktopItems = [