nvidia-x11: Use GTK 2
Otherwise we end up with multiple versions of GTK in the system closure. Also, GTK 3 is not well integrated in NixOS yet (e.g. it doesn't respect KDE's colour scheme).
This commit is contained in:
@@ -68,7 +68,6 @@ installPhase() {
|
||||
#patchelf --set-rpath $cudaPath $out/lib/libcuda.so.*.*
|
||||
#patchelf --set-rpath $openclPath $out/lib/libnvidia-opencl.so.*.*
|
||||
|
||||
|
||||
if test -z "$libsOnly"; then
|
||||
# Install headers and /share files etc.
|
||||
mkdir -p $out/include/nvidia
|
||||
@@ -99,15 +98,16 @@ installPhase() {
|
||||
--set-rpath $out/lib:$programPath:$glPath $out/bin/$i
|
||||
done
|
||||
|
||||
patchelf --set-rpath $glPath:$gtk3Path $out/lib/libnvidia-gtk3.so.*.*
|
||||
patchelf --set-rpath $glPath:$gtkPath $out/lib/libnvidia-gtk2.so.*.*
|
||||
|
||||
# Test a bit.
|
||||
$out/bin/nvidia-settings --version
|
||||
else
|
||||
rm $out/lib/libnvidia-gtk3.*
|
||||
rm $out/lib/libnvidia-gtk2.*
|
||||
fi
|
||||
# for simplicity and dependency reduction, don't support the gtk2 interface
|
||||
rm $out/lib/libnvidia-gtk2.*
|
||||
|
||||
# For simplicity and dependency reduction, don't support the gtk3 interface.
|
||||
rm $out/lib/libnvidia-gtk3.*
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user