elementary-planner: fix build with vala 0.56

This commit is contained in:
Bobby Rong 2022-03-17 16:31:40 +08:00
parent 76ab64ad6c
commit 4d201e7ae5
No known key found for this signature in database
GPG key ID: ED07364437C91161

View file

@ -70,6 +70,11 @@ stdenv.mkDerivation rec {
substituteInPlace src/Application.vala \
--replace '"gtk-theme-name", "elementary"' '"gtk-theme-name", "io.elementary.stylesheet.blueberry"'
# Fix build with vala 0.56
# https://github.com/alainm23/planner/pull/884
substituteInPlace src/Application.vala \
--replace "public const OptionEntry[] PLANNER_OPTIONS" "private const OptionEntry[] PLANNER_OPTIONS"
chmod +x build-aux/meson/post_install.py
patchShebangs build-aux/meson/post_install.py
'';