clairvoyant: Add hideUnsupportedVersionBanner option

Clairvoyant v3.1.3 introduced a non-dismissble banner stating that this
version of the app is unsupported, which is shown when the app detects
that it is not running as a Flatpak. This change adds the
"hideUnsupportedVersionBanner" option, disabled by default, which makes
it look like the app is running as a Flatpak.
This commit is contained in:
Michael Evans 2024-01-31 08:51:59 +02:00
parent e0905a878f
commit 4beb6898f8

View file

@ -8,6 +8,8 @@
, stdenv
, vala
, wrapGAppsHook4
# Clairvoyant shows a non-dismissable banner recommending the use of the Flatpak version
, hideUnsupportedVersionBanner ? false
}:
stdenv.mkDerivation (finalAttrs: {
@ -34,6 +36,12 @@ stdenv.mkDerivation (finalAttrs: {
libadwaita
];
preFixup = lib.optionalString hideUnsupportedVersionBanner ''
gappsWrapperArgs+=(
--set container true
)
'';
meta = with lib; {
changelog = "https://github.com/cassidyjames/clairvoyant/releases/tag/${finalAttrs.version}";
description = "Ask questions and get psychic answers";