[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
145/350: gnu: Add speakersafetyd.
From: |
guix-commits |
Subject: |
145/350: gnu: Add speakersafetyd. |
Date: |
Sun, 15 Dec 2024 02:14:24 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 9b35cf7246437faf1d5731e637efe6177507cfee
Author: Roman Scherer <roman@burningswell.com>
AuthorDate: Wed Nov 6 18:08:42 2024 +0100
gnu: Add speakersafetyd.
* gnu/packages/rust-apps.scm (speakersafetyd): New variable.
Change-Id: I02eb6e0c23fd04cff86b67ed30e8867af07a724b
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/rust-apps.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index a2619a608b..38370399d8 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2696,6 +2696,59 @@ are parsed concurrently using a thread pool to utilize
all cpu cores. A goal
of the project is to be runnable on untrusted networks without crashing.")
(license license:gpl3)))
+(define-public speakersafetyd
+ (package
+ (name "speakersafetyd")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "speakersafetyd" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1dvyj194niz5i4rldsqvjmz8j7df9w9qpvf9rwg3vsnzc2mjh0zg"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:cargo-inputs `(("rust-alsa" ,rust-alsa-0.8)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-clap-verbosity-flag" ,rust-clap-verbosity-flag-2)
+ ("rust-configparser" ,rust-configparser-3)
+ ("rust-json" ,rust-json-0.12)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-signal-hook" ,rust-signal-hook-0.3)
+ ("rust-simple-logger" ,rust-simple-logger-1))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda _
+ (substitute* "src/main.rs"
+ (("/usr/local") #$output))))
+ (add-after 'unpack 'remove-systemd-udev-rules
+ (lambda _
+ (substitute* "95-speakersafetyd.rules"
+ ((".*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 "/usr/share"))
+ (setenv "VARDIR" (string-append #$output "/var"))
+ (invoke "make" "install-data"))))))
+ (inputs (list alsa-lib))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/AsahiLinux/speakersafetyd/")
+ (synopsis "Speaker protection daemon")
+ (description "Speakersafetyd is a userspace daemon written in Rust that
+implements an analogue of the Texas Instruments Smart Amp speaker protection
+model.")
+ (license license:expat)))
+
(define-public tectonic
(package
(name "tectonic")
- 127/350: gnu: Add rust-wasite-0.1., (continued)
- 127/350: gnu: Add rust-wasite-0.1., guix-commits, 2024/12/15
- 126/350: gnu: Add rust-versions-6., guix-commits, 2024/12/15
- 129/350: gnu: Add rust-which-7., guix-commits, 2024/12/15
- 132/350: gnu: Add rust-yaml-rust2-0.9., guix-commits, 2024/12/15
- 134/350: gnu: rust-indexmap-2: Update to 2.7.0., guix-commits, 2024/12/15
- 135/350: gnu: Add rust-ssh-encoding-0.2., guix-commits, 2024/12/15
- 141/350: gnu: Add rust-asyncgit-0.26., guix-commits, 2024/12/15
- 138/350: gnu: Add rust-ssh-key-0.6., guix-commits, 2024/12/15
- 140/350: gnu: Add rust-unicode-truncate-1., guix-commits, 2024/12/15
- 152/350: gnu: rust-aesni-0.7: Mark package as deprecated., guix-commits, 2024/12/15
- 145/350: gnu: Add speakersafetyd.,
guix-commits <=
- 149/350: gnu: rust-aes-soft-0.3: Mark as deprecated., guix-commits, 2024/12/15
- 155/350: gnu: rust-crypto-mac-0.4: Mark package as deprecated., guix-commits, 2024/12/15
- 147/350: gnu: rust-aes-0.3: Mark as deprecated., guix-commits, 2024/12/15
- 143/350: gnu: just: Update to 1.37.0., guix-commits, 2024/12/15
- 163/350: gnu: rust-universal-hash-0.4: Update to 0.4.1., guix-commits, 2024/12/15
- 148/350: gnu: rust-aes-soft-0.3: Don't skip the build., guix-commits, 2024/12/15
- 154/350: gnu: rust-block-cipher-trait-0.6: Mark package as deprecated., guix-commits, 2024/12/15
- 164/350: gnu: rust-sha1-smol-1: Update to 1.0.1., guix-commits, 2024/12/15
- 160/350: gnu: rust-sha2-asm-0.5: Update to 0.5.5., guix-commits, 2024/12/15
- 158/350: gnu: rust-sha1collisiondetection-0.2: Update to 0.2.7., guix-commits, 2024/12/15