2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-08-21 17:31:40 +01:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-08-21 17:31:40 +01:00
|
|
|
, 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
|
2020-08-21 17:31:40 +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";
|
2020-08-21 17:31:40 +01:00
|
|
|
version = "3.38.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-08-21 17:31:40 +01:00
|
|
|
sha256 = "0rwcg9sd5rv7gjwapcd1jjk6l16w0p3j7wkicq1rdch4c0kch12p";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2020-08-21 17:31:40 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
glib
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-08-21 17:31:40 +01: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 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
|
|
|
'';
|
|
|
|
|
2020-08-21 17:31:40 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-08-21 17:31:40 +01:00
|
|
|
description = "Collection of GSettings schemas for settings shared by various components of a desktop";
|
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|