From 3b2d0133f37af09cdbbd3a60a633fc0dab969fce Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 May 2010 16:58:04 +0000 Subject: [PATCH] * Patch the `nvidia-settings.desktop' file to make it work on KDE. svn path=/nixpkgs/trunk/; revision=21628 --- pkgs/os-specific/linux/nvidia-x11/builder.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh index be325766c77f..772f72f4cd81 100755 --- a/pkgs/os-specific/linux/nvidia-x11/builder.sh +++ b/pkgs/os-specific/linux/nvidia-x11/builder.sh @@ -74,6 +74,11 @@ installPhase() { # Header files etc. cp -prd usr/include usr/share $out + + # Patch the `nvidia-settings.desktop' file. + substituteInPlace $out/share/applications/nvidia-settings.desktop \ + --replace '__UTILS_PATH__' $out/bin \ + --replace '__PIXMAP_PATH__' $out/share/pixmaps }