monitor: Fix build with Vala 0.56.18

error: Compact class `Monitor.HwmonTemperature' cannot inherit from non-compact class `GLib.Object'
This commit is contained in:
Bobby Rong 2025-06-02 23:49:06 +08:00
parent 8869df7043
commit 9bb3569e18
No known key found for this signature in database

View file

@ -84,6 +84,12 @@ stdenv.mkDerivation rec {
substituteInPlace meson.build --replace \
"meson.get_compiler('c').find_library('libcurl', dirs: vapidir)" \
"meson.get_compiler('c').find_library('libcurl', dirs: '${curl.out}/lib')"
# Fix build with Vala 0.56.18
# https://github.com/elementary/monitor/issues/444
for i in $(find src/Resources -type f -name "*.vala"); do
substituteInPlace $i --replace-warn "[Compact]" ""
done
'';
passthru = {