gsettings_desktop_schemas: Fix path to background images

This fixes the "blue screen" desktop background caused by gnome being
unable to find the image.

+7
+7
pkgs/desktops/gnome-3/3.16/core/gsettings-desktop-schemas/default.nix
··· 15 sha256 = "0q9l9fr90pcb3s6crbxkj3wiwn7wp9zfpv7bdxkadj0hspd9zzkl"; 16 }; 17 18 buildInputs = [ glib gobjectIntrospection ]; 19 20 nativeBuildInputs = [ pkgconfig intltool ];
··· 15 sha256 = "0q9l9fr90pcb3s6crbxkj3wiwn7wp9zfpv7bdxkadj0hspd9zzkl"; 16 }; 17 18 + postPatch = '' 19 + for file in "background" "screensaver"; do 20 + substituteInPlace "schemas/org.gnome.desktop.$file.gschema.xml.in" \ 21 + --replace "@datadir@" "${gnome3.gnome-backgrounds}/share/" 22 + done 23 + ''; 24 + 25 buildInputs = [ glib gobjectIntrospection ]; 26 27 nativeBuildInputs = [ pkgconfig intltool ];