Skip to content

Commit

Permalink
clairvoyant: Add hideUnsupportedVersionBanner option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaelgrahamevans committed Jan 31, 2024
1 parent e0905a8 commit 4beb689
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/by-name/cl/clairvoyant/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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";
Expand Down

0 comments on commit 4beb689

Please sign in to comment.