diff --git a/radix/packages/pulseaudio.scm b/radix/packages/pulseaudio.scm index 25efbd3..17609f1 100644 --- a/radix/packages/pulseaudio.scm +++ b/radix/packages/pulseaudio.scm @@ -7,7 +7,6 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (gnu packages) - #:use-module (gnu packages bash) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) @@ -45,7 +44,22 @@ (("PandocMan") (search-input-file inputs "PandocMan.cmake"))))) (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 (list (origin (method git-fetch)