* [bug#52803] [PATCH] gnu: Add headsetcontrol.
@ 2021-12-26 16:16 John Kehayias via Guix-patches via
2021-12-26 16:41 ` [bug#52803] [PATCH v2] " John Kehayias via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: John Kehayias via Guix-patches via @ 2021-12-26 16:16 UTC (permalink / raw)
To: 52803
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Attached is a patch to add the program headsetcontrol, which allows getting/setting properties for USB headsets. I've been using a previous version (2.4) locally for quite some time and it works well.
The package also builds udev rules, should a note be added to the description that it includes udev rules or anything about that?
Thanks!
John
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-headsetcontrol.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-headsetcontrol.patch, Size: 1709 bytes --]
From 1a22f60566e10b3ce391aa95f3b8b520556cb590 Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Sun, 26 Dec 2021 11:13:29 -0500
Subject: [PATCH] gnu: Add headsetcontrol.
* gnu/packages/hardware.scm (headsetcontrol): New variable.
---
gnu/packages/hardware.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index ddd0f5acc1..129ea7c20e 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -316,6 +316,30 @@ (define-public h-client
(home-page "https://savannah.nongnu.org/projects/h-client/")
(license license:gpl3+))))
+(define-public headsetcontrol
+ (package
+ (name "headsetcontrol")
+ (version "2.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Sapd/HeadsetControl")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0a7zimzi71416pmn6z0l1dn1c2x8p702hkd0k6da9rsznff85a88"))))
+ (build-system cmake-build-system)
+ (inputs
+ (list hidapi))
+ (synopsis "Sidetone and Battery status for USB headsets")
+ (description
+ "A tool to control certain aspects of USB-connected headsets on Linux.
+Currently, support is provided for adjusting sidetone, getting battery state,
+controlling LEDs, and setting the inactive time.")
+ (home-page "https://github.com/Sapd/HeadsetControl")
+ (license license:gpl3)))
+
(define-public i7z
(let ((revision "0")
(commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb"))
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#52803] [PATCH v2] gnu: Add headsetcontrol.
2021-12-26 16:16 [bug#52803] [PATCH] gnu: Add headsetcontrol John Kehayias via Guix-patches via
@ 2021-12-26 16:41 ` John Kehayias via Guix-patches via
2021-12-27 9:49 ` bug#52803: " Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: John Kehayias via Guix-patches via @ 2021-12-26 16:41 UTC (permalink / raw)
To: 52803@debbugs.gnu.org
[-- Attachment #1: Type: text/plain, Size: 49 bytes --]
Forgot the copyright line, added in this version.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-headsetcontrol.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-headsetcontrol.patch, Size: 2025 bytes --]
From 6ffd909e7609856111b2164067cac59fbcb2b025 Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Sun, 26 Dec 2021 11:13:29 -0500
Subject: [PATCH] gnu: Add headsetcontrol.
* gnu/packages/hardware.scm (headsetcontrol): New variable.
---
gnu/packages/hardware.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index ddd0f5acc1..c7ebb9b7f2 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -316,6 +317,30 @@ (define-public h-client
(home-page "https://savannah.nongnu.org/projects/h-client/")
(license license:gpl3+))))
+(define-public headsetcontrol
+ (package
+ (name "headsetcontrol")
+ (version "2.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Sapd/HeadsetControl")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0a7zimzi71416pmn6z0l1dn1c2x8p702hkd0k6da9rsznff85a88"))))
+ (build-system cmake-build-system)
+ (inputs
+ (list hidapi))
+ (synopsis "Sidetone and Battery status for USB headsets")
+ (description
+ "A tool to control certain aspects of USB-connected headsets on Linux.
+Currently, support is provided for adjusting sidetone, getting battery state,
+controlling LEDs, and setting the inactive time.")
+ (home-page "https://github.com/Sapd/HeadsetControl")
+ (license license:gpl3)))
+
(define-public i7z
(let ((revision "0")
(commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb"))
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#52803: [PATCH v2] gnu: Add headsetcontrol.
2021-12-26 16:41 ` [bug#52803] [PATCH v2] " John Kehayias via Guix-patches via
@ 2021-12-27 9:49 ` Nicolas Goaziou
2021-12-27 15:07 ` [bug#52803] " John Kehayias via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2021-12-27 9:49 UTC (permalink / raw)
To: John Kehayias via Guix-patches via; +Cc: John Kehayias, 52803@debbugs.gnu.org
Hello,
John Kehayias via Guix-patches via <guix-patches@gnu.org> writes:
> Subject: [PATCH] gnu: Add headsetcontrol.
>
> * gnu/packages/hardware.scm (headsetcontrol): New variable.
Thank you. I pushed it with the changes detailed below.
> +(define-public headsetcontrol
> + (package
> + (name "headsetcontrol")
> + (version "2.6")
> + (source (origin
> + (method git-fetch)
I moved `origin' below `source' and adjusted indentation.
> + (uri (git-reference
> + (url "https://github.com/Sapd/HeadsetControl")
> + (commit version)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0a7zimzi71416pmn6z0l1dn1c2x8p702hkd0k6da9rsznff85a88"))))
I moved hash on the same line as `base32'
> + (build-system cmake-build-system)
> + (inputs
> + (list hidapi))
> + (synopsis "Sidetone and Battery status for USB headsets")
> + (description
> + "A tool to control certain aspects of USB-connected headsets on Linux.
I started the description with the name of the package (guix lint
should warn you about this), and removed reference to Linux, since it is
not useful in Guix.
> +Currently, support is provided for adjusting sidetone, getting battery state,
> +controlling LEDs, and setting the inactive time.")
> + (home-page "https://github.com/Sapd/HeadsetControl")
> + (license license:gpl3)))
I used gpl3+ as "main.c" includes "or (at your option) any later
version" in its header.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#52803] [PATCH v2] gnu: Add headsetcontrol.
2021-12-27 9:49 ` bug#52803: " Nicolas Goaziou
@ 2021-12-27 15:07 ` John Kehayias via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: John Kehayias via Guix-patches via @ 2021-12-27 15:07 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 52803-done, 52803
Hi Nicolas,
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, December 27th, 2021 at 4:49 AM, Nicolas Goaziou wrote:
> Hello,
>
> John Kehayias via Guix-patches via guix-patches@gnu.org writes:
>
> > Subject: [PATCH] gnu: Add headsetcontrol.
> >
> > - gnu/packages/hardware.scm (headsetcontrol): New variable.
>
> Thank you. I pushed it with the changes detailed below.
>
Thanks! Not sure how I missed that guix lint suggestion (I did run it), will keep a look out for that in case it did miss it for some reason.
John
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-27 15:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-26 16:16 [bug#52803] [PATCH] gnu: Add headsetcontrol John Kehayias via Guix-patches via
2021-12-26 16:41 ` [bug#52803] [PATCH v2] " John Kehayias via Guix-patches via
2021-12-27 9:49 ` bug#52803: " Nicolas Goaziou
2021-12-27 15:07 ` [bug#52803] " John Kehayias via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).