diff options
author | 4JX <79868816+4JX@users.noreply.github.com> | 2023-06-04 18:18:42 +0200 |
---|---|---|
committer | 4JX <79868816+4JX@users.noreply.github.com> | 2023-06-06 04:35:18 +0200 |
commit | 37695f78bb9bf6d2380304c94c5eb8607f25adbd (patch) | |
tree | dd024731b3cb793b0816315d97ee10ca74f21b19 /pkgs/desktops/gnome/extensions | |
parent | 2e56a850786211972d99d2bb39665a9b5a1801d6 (diff) |
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
Diffstat (limited to 'pkgs/desktops/gnome/extensions')
-rw-r--r-- | pkgs/desktops/gnome/extensions/buildGnomeExtension.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix b/pkgs/desktops/gnome/extensions/buildGnomeExtension.nix index ca01c64217ae3..77b5339368503 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/ |