From 37695f78bb9bf6d2380304c94c5eb8607f25adbd Mon Sep 17 00:00:00 2001 From: 4JX <79868816+4JX@users.noreply.github.com> Date: Sun, 4 Jun 2023 18:18:42 +0200 Subject: [PATCH] gnomeExtensions: compile schemas if present https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2638 https://gjs.guide/extensions/upgrading/gnome-shell-44.html#gsettings-schema --- pkgs/desktops/gnome/extensions/buildGnomeExtension.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix b/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix index ca01c64217ae..77b533936850 100644 --- a/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix +++ b/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix @@ -36,7 +36,14 @@ let echo "${metadata}" | base64 --decode > $out/metadata.json ''; }; - dontBuild = true; + nativeBuildInputs = with pkgs; [ glib ]; + buildPhase = '' + runHook preBuild + if [ -d schemas ]; then + glib-compile-schemas --strict schemas + fi + runHook postBuild + ''; installPhase = '' runHook preInstall mkdir -p $out/share/gnome-shell/extensions/