Merge pull request #235948: gnomeExtensions: compile schemas if present

This commit is contained in:
piegames 2023-06-06 13:42:23 +02:00 committed by GitHub
commit 03c5eb58a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,14 @@ let
echo "${metadata}" | base64 --decode > $out/metadata.json 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 = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/share/gnome-shell/extensions/ mkdir -p $out/share/gnome-shell/extensions/