2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, gobject-introspection
|
2019-03-03 18:23:57 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2016-09-18 21:35:23 +02:00
|
|
|
# just for passthru
|
2018-07-21 02:44:44 +02:00
|
|
|
, gnome3 }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gsettings-desktop-schemas-${version}";
|
2019-03-03 18:23:57 +01:00
|
|
|
version = "3.32.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-03 18:23:57 +01:00
|
|
|
sha256 = "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gsettings-desktop-schemas"; };
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-03-03 18:23:57 +01:00
|
|
|
# meson installs the schemas to share/glib-2.0/schemas
|
|
|
|
# We add the override file there too so it will be compiled and later moved by
|
|
|
|
# glib's setup hook.
|
2017-11-23 22:11:40 +01:00
|
|
|
preInstall = ''
|
2019-03-03 18:23:57 +01:00
|
|
|
mkdir -p $out/share/glib-2.0/schemas
|
|
|
|
cat - > $out/share/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
|
2017-11-23 22:11:40 +01:00
|
|
|
[org.gnome.desktop.background]
|
|
|
|
picture-uri='''
|
|
|
|
|
|
|
|
[org.gnome.desktop.screensaver]
|
|
|
|
picture-uri='''
|
|
|
|
EOF
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
2019-03-03 18:23:57 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post-install.py
|
|
|
|
patchShebangs build-aux/meson/post-install.py
|
|
|
|
'';
|
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
buildInputs = [ glib gobject-introspection ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-03-03 18:23:57 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig python3 meson ninja ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|