packages: pulseaudio: Add dekstop file for ncpamixer
parent
4de7cf2345
commit
ff68cb8193
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue