2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gobject-introspection
|
2019-03-03 17:23:57 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2016-09-18 20:35:23 +01:00
|
|
|
# just for passthru
|
2018-07-21 01:44:44 +01:00
|
|
|
, gnome3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gsettings-desktop-schemas-${version}";
|
2019-03-03 17:23:57 +00:00
|
|
|
version = "3.32.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-03 17:23:57 +00:00
|
|
|
sha256 = "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gsettings-desktop-schemas"; };
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-03 17:23:57 +00: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 21:11:40 +00:00
|
|
|
preInstall = ''
|
2019-03-03 17:23:57 +00:00
|
|
|
mkdir -p $out/share/glib-2.0/schemas
|
|
|
|
cat - > $out/share/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
|
2017-11-23 21:11:40 +00:00
|
|
|
[org.gnome.desktop.background]
|
|
|
|
picture-uri='''
|
|
|
|
|
|
|
|
[org.gnome.desktop.screensaver]
|
|
|
|
picture-uri='''
|
|
|
|
EOF
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2019-03-03 17:23:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post-install.py
|
|
|
|
patchShebangs build-aux/meson/post-install.py
|
|
|
|
'';
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
buildInputs = [ glib gobject-introspection ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-03 17:23:57 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig python3 meson ninja ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|