Merge #31991: gnome3.gsettings_desktop_schemas:

do not depend on gnome-backgrounds
This commit is contained in:
Vladimír Čunát 2017-11-27 14:48:12 +01:00
commit 2b04026a8a
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
1 changed files with 9 additions and 5 deletions

View File

@ -5,11 +5,15 @@
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
postPatch = ''
for file in "background" "screensaver"; do
substituteInPlace "schemas/org.gnome.desktop.$file.gschema.xml.in" \
--replace "@datadir@" "${gnome3.gnome-backgrounds}/share/"
done
preInstall = ''
mkdir -p $out/share/gsettings-schemas/${name}/glib-2.0/schemas
cat - > $out/share/gsettings-schemas/${name}/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
[org.gnome.desktop.background]
picture-uri='''
[org.gnome.desktop.screensaver]
picture-uri='''
EOF
'';
buildInputs = [ glib gobjectIntrospection ];