66604c92c1
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, glib, gobject-introspection
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
# just for passthru
|
|
, gnome3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gsettings-desktop-schemas";
|
|
version = "3.36.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1nf97vq07gadwdla6kws8z510xlmv0a7wlyqwwnhyagq7kjdnjq0";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript { packageName = "gsettings-desktop-schemas"; };
|
|
};
|
|
|
|
# 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.
|
|
preInstall = ''
|
|
mkdir -p $out/share/glib-2.0/schemas
|
|
cat - > $out/share/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
|
|
[org.gnome.desktop.background]
|
|
picture-uri='''
|
|
|
|
[org.gnome.desktop.screensaver]
|
|
picture-uri='''
|
|
EOF
|
|
'';
|
|
|
|
postPatch = ''
|
|
chmod +x build-aux/meson/post-install.py
|
|
patchShebangs build-aux/meson/post-install.py
|
|
'';
|
|
|
|
buildInputs = [ glib gobject-introspection ];
|
|
|
|
nativeBuildInputs = [ pkgconfig python3 meson ninja glib ];
|
|
|
|
meta = with stdenv.lib; {
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|