Subject: [PATCH 1/2] gnu: speakersafetyd: Update to 1.1.2.

From: Roman Scherer <[email-masked]>
Date: Sun, 30 Mar 2025 14:26:55 +0200

* gnu/packages/rust-apps.scm (speakersafetyd): Update to 1.1.2.

Change-Id: I1c6d7b6080b18bd8228e8b39d1a0b42267e2b7e1
---
 gnu/packages/rust-apps.scm | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 2f933d836c..1211ccb0c4 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3211,14 +3211,14 @@ (define-public sniffglue
 (define-public speakersafetyd
   (package
     (name "speakersafetyd")
-    (version "1.0.2")
+    (version "1.1.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "speakersafetyd" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "104xgyqhsg2rxa3ndkizrpndibmcbr25h63phcjswadbm8i790bz"))))
+        (base32 "1c4yk8mq8nazshdcasimlgnyhx27wzkad4wzicy5x43grq26b966"))))
     (build-system cargo-build-system)
     (arguments
      (list
@@ -3245,13 +3245,11 @@ (define-public speakersafetyd
                 ((".*SYSTEMD_WANTS.*") ""))))
           (add-after 'install 'install-data
             (lambda _
-              (setenv "BINDIR" (string-append #$output "/bin"))
-              (setenv "UNITDIR" (string-append #$output "/lib/systemd/system"))
-              (setenv "UDEVDIR" (string-append #$output "/lib/udev/rules.d"))
-              (setenv "TMPFILESDIR" (string-append #$output "/usr/lib/tmpfiles.d"))
-              (setenv "SHAREDIR" (string-append #$output "/share"))
-              (setenv "VARDIR" (string-append #$output "/var"))
-              (invoke "make" "install-data"))))))
+              (setenv "DESTDIR" #$output)
+              (setenv "SHAREDIR" "/share")
+              (setenv "SPEAKERSAFETYD_GROUP" "nixbld")
+              (setenv "SPEAKERSAFETYD_USER" "nixbld")
+              (invoke "make" "install"))))))
     (inputs (list alsa-lib))
     (native-inputs (list pkg-config))
     (home-page "https://github.com/AsahiLinux/speakersafetyd/")
-- 
2.49.0