nixpkgs/pkgs/development/libraries/gsettings-desktop-schemas/default.nix
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00

48 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, glib, gobject-introspection
, meson
, ninja
, python3
# just for passthru
, gnome3 }:
stdenv.mkDerivation rec {
name = "gsettings-desktop-schemas-${version}";
version = "3.32.0";
src = fetchurl {
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d";
};
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 ];
meta = with stdenv.lib; {
maintainers = gnome3.maintainers;
};
}