From 5fab8f4967cfade44a6c7b1fb86e42494f899f94 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 15 Dec 2023 22:06:49 +0800 Subject: [PATCH] nongnu: nvidia-settings: Fix application profile path. * nongnu/packages/nvidia.scm (nvidia-settings)[arguments]<#:phases>: Add 'fix-application-profile-path. Signed-off-by: John Kehayias --- nongnu/packages/nvidia.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index fccacef..2c96f3a 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -554,6 +554,10 @@ userspace tools from the corresponding driver release.") #:phases #~(modify-phases %standard-phases (delete 'configure) + (add-after 'unpack 'fix-application-profile-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/gtk+-2.x/ctkappprofile.c" + (("/usr") "/run/booted-system/profile")))) (add-after 'install 'wrap-program (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))