diff mbox series

[bug#57757] gnu: Add sbcl-stumpwm-pamixer

Message ID 807a9ee32b728e44e58be589cb79f6ce5a265c0f.1663648501.git.trev@trevdev.ca
State Accepted
Headers show
Series [bug#57757] gnu: Add sbcl-stumpwm-pamixer | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Trevor Richards Sept. 20, 2022, 4:38 a.m. UTC
---
 gnu/packages/wm.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Comments

Guillaume Le Vaillant Sept. 20, 2022, 7:17 a.m. UTC | #1
Patch pushed as 4248fe076e006eb493320b23b4ddb9ebca36adbd.
Thanks.
diff mbox series

Patch

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index f329020eb4..912cddbca3 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -1987,6 +1987,40 @@  (define-public stumpish
     (description "This package provides a StumpWM interactive shell.")
     (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
 
+(define-public sbcl-stumpwm-pamixer
+  (let ((commit "aa820533c80ea1af5a0e107cea25eaf34e69dc24")
+        (revision "1"))
+    (package
+      (name "sbcl-stumpwm-pamixer")
+      (version (git-version "0.1.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/Junker/stumpwm-pamixer")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0djcrr16bx40l7b60d4j507vk5l42fdgmjpgrnk86z1ba8wlqim8"))))
+      (inputs (list `(,stumpwm "lib") pamixer))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       (list #:asd-systems ''(:pamixer)
+             #:phases #~(modify-phases %standard-phases
+                          (add-after 'unpack 'patch-pamixer
+                            (lambda _
+                              (substitute* "pamixer.lisp"
+                                (("\"pamixer \"")
+                                 (string-append "\""
+                                                #$(this-package-input
+                                                   "pamixer")
+                                                "/bin/pamixer \""))))))))
+      (home-page "https://github.com/Junker/stumpwm-pamixer")
+      (synopsis "StumpWM Pamixer Module")
+      (description "Minimalistic Pulseaudio volume and microphone control
+module for StumpWM.")
+      (license license:gpl3))))
+
 (define-public sbcl-stumpwm+slynk
   (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))