2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2020-08-21 18:31:40 +02:00
|
|
|
, fetchurl
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2020-08-21 18:31:40 +02:00
|
|
|
, 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
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-08-21 18:31:40 +02:00
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gsettings-desktop-schemas";
|
2021-03-21 06:15:50 +01:00
|
|
|
version = "40.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 06:15:50 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "11an29br55dp0b26kfqlrfxj19glfrmhcdpds2n1w9n04gq3pf7i";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2020-08-21 18:31:40 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
glib
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2020-08-21 18:31:40 +02:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post-install.py
|
|
|
|
patchShebangs build-aux/meson/post-install.py
|
|
|
|
'';
|
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
|
|
|
'';
|
|
|
|
|
2020-08-21 18:31:40 +02:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2020-08-21 18:31:40 +02:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-08-21 18:31:40 +02:00
|
|
|
description = "Collection of GSettings schemas for settings shared by various components of a desktop";
|
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|