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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gsettings-desktop-schemas";
|
2019-09-02 17:45:30 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 17:45:30 +01:00
|
|
|
sha256 = "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8";
|
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;
|
|
|
|
};
|
|
|
|
}
|