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
This commit is contained in:
parent
2e56a85078
commit
37695f78bb
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue