From 2ae8a04b5769648f38748f9c49de2d31786b7b13 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 15 Dec 2023 22:09:22 +0800 Subject: [PATCH] nongnu: nvidia-settings: Install desktop file. * nongnu/packages/nvidia.scm (nvidia-settings)[arguments]<#:phases>: Add 'install-desktop-file. Signed-off-by: John Kehayias --- nongnu/packages/nvidia.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 2c96f3a..713cc57 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -558,6 +558,17 @@ userspace tools from the corresponding driver release.") (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/gtk+-2.x/ctkappprofile.c" (("/usr") "/run/booted-system/profile")))) + (add-after 'install 'install-desktop-file + (lambda _ + (substitute* "doc/nvidia-settings.desktop" + (("^Exec=.*") "Exec=nvidia-settings\n") + (("__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__") "Settings")) + (install-file "doc/nvidia-settings.desktop" + (string-append + #$output "/share/applications")) + (install-file "doc/nvidia-settings.png" + (string-append + #$output "/share/icons/hicolor/128x128/apps")))) (add-after 'install 'wrap-program (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))