Subject: [PATCH] gnu: Add qbittorrent-nox.

From: Hilton Chain <[email-masked]>
Date: Sun, 12 Feb 2023 13:08:57 +0800

* gnu/packages/bittorrent.scm (qbittorrent-nox): New variable.
---
 gnu/packages/bittorrent.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index c3257cf2bf..ab4091009d 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -491,6 +491,23 @@ (define-public qbittorrent
 features.")
     (license l:gpl2+)))
 
+(define-public qbittorrent-nox
+  (let ((base qbittorrent))
+    (package
+      (inherit base)
+      (name "qbittorrent-nox")
+      (arguments
+       (substitute-keyword-arguments (package-arguments base)
+         ((#:configure-flags configure-flags)
+          #~(append #$configure-flags
+                    (list "--disable-gui")))
+         ((#:phases phases)
+          #~(modify-phases #$phases
+              (delete 'wrap-qt)))))
+      (inputs
+       (modify-inputs (package-inputs base)
+         (delete "qtsvg-5"))))))
+
 (define-public deluge
   (package
     (name "deluge")

base-commit: 4a6f64ab2afff761eb233e7ca6110d9e8acf8f32
-- 
2.39.1