packages: pulseaudio: Add dekstop file for ncpamixer

main
Luis Guilherme Coelho 2024-09-07 10:53:11 -03:00
parent 4de7cf2345
commit ff68cb8193
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 16 additions and 2 deletions

View File

@ -7,7 +7,6 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages bash)
#:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
@ -45,7 +44,22 @@
(("PandocMan") (("PandocMan")
(search-input-file inputs "PandocMan.cmake"))))) (search-input-file inputs "PandocMan.cmake")))))
(add-before 'configure 'chdir-src (add-before 'configure 'chdir-src
(lambda _ (chdir "src")))))) (lambda _ (chdir "src")))
(add-after 'install 'install-desktop-file
(lambda _
(let* ((out #$output)
(applications (string-append out "/share/applications"))
(ncpamixer-bin (string-append out "/bin/ncpamixer")))
(make-desktop-entry-file
(string-append applications "/ncpamixer.desktop")
#:type "Application"
#:name "ncpamixer"
#:comment "Launches the ncpamixer audio manager."
#:icon "utilities-terminal"
#:terminal #t
#:try-exec ncpamixer-bin
#:exec ncpamixer-bin
#:categories (list "ConsoleOnly" "System"))))))))
(native-inputs (native-inputs
(list (origin (list (origin
(method git-fetch) (method git-fetch)