elementary-planner: fix wrong hardcoded GTK theme name

The theme name is updated in elementary OS 6.
This commit is contained in:
Bobby Rong 2022-03-18 09:54:54 +08:00
parent 73ad5f9e14
commit 019e6fdd78
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -64,13 +64,19 @@ stdenv.mkDerivation rec {
];
postPatch = ''
# The GTK theme has been renamed in elementary OS 6
# https://github.com/elementary/flatpak-platform/blob/6.1.0/io.elementary.Sdk.json#L182
# Remove this in https://github.com/NixOS/nixpkgs/pull/159249
substituteInPlace src/Application.vala \
--replace '"gtk-theme-name", "elementary"' '"gtk-theme-name", "io.elementary.stylesheet.blueberry"'
chmod +x build-aux/meson/post_install.py
patchShebangs build-aux/meson/post_install.py
'';
preFixup = ''
gappsWrapperArgs+=(
# the theme is hardcoded
# The GTK theme is hardcoded.
--prefix XDG_DATA_DIRS : "${pantheon.elementary-gtk-theme}/share"
)
'';