summary refs log tree commit diff
path: root/pkgs/development/libraries/gsettings-desktop-schemas
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2019-04-16 20:38:26 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2019-04-17 13:39:23 -0400
commit7abeda982a0d4324d06a0997deb3681c91df55ff (patch)
tree096fab32a6d2ddf31624c2e91cb0810412a3d9d1 /pkgs/development/libraries/gsettings-desktop-schemas
parent25ebfe22e901017fe863a0a8ea824c790dbce125 (diff)
downloadnixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar.gz
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar.bz2
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar.lz
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar.xz
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.tar.zst
nixpkgs-7abeda982a0d4324d06a0997deb3681c91df55ff.zip
gnome3.gsettings-desktop-schemas -> gsettings-desktop-schemas
gnome3.pomodoro is left out because I don't want to create a conflict.
Diffstat (limited to 'pkgs/development/libraries/gsettings-desktop-schemas')
-rw-r--r--pkgs/development/libraries/gsettings-desktop-schemas/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gsettings-desktop-schemas/default.nix b/pkgs/development/libraries/gsettings-desktop-schemas/default.nix
new file mode 100644
index 00000000000..c1bdcd6956e
--- /dev/null
+++ b/pkgs/development/libraries/gsettings-desktop-schemas/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchurl, pkgconfig, intltool, 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;
+  };
+}