Commit 4beb6898 authored by Michael Evans's avatar Michael Evans
Browse files

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.
parent e0905a87
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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";