Skip to content

Commit

Permalink
Merge pull request #164555 from bobby285271/elementary-planner
Browse files Browse the repository at this point in the history
elementary-planner: hardcoded themes & vala 0.56 fixes
  • Loading branch information
bobby285271 authored Mar 19, 2022
2 parents 2768178 + 4d201e7 commit 76f5860
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/applications/office/elementary-planner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,27 @@ 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"'
# 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
'';

preFixup = ''
gappsWrapperArgs+=(
# the theme is hardcoded
# The GTK theme is hardcoded.
--prefix XDG_DATA_DIRS : "${pantheon.elementary-gtk-theme}/share"
# The icon theme is hardcoded.
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
)
'';

Expand Down

0 comments on commit 76f5860

Please sign in to comment.