diff options
author | Michael Evans <michaelgrahamevans@gmail.com> | 2024-01-31 08:51:59 +0200 |
---|---|---|
committer | Michael Evans <michaelgrahamevans@gmail.com> | 2024-01-31 09:11:07 +0200 |
commit | 4beb6898f89249b09c18cc473200a3b8ae07cbfa (patch) | |
tree | 726e5d5a34bdbd81dbdd50e6dca828d06fe84199 /pkgs/by-name/cl | |
parent | e0905a878ffef427950d38d7ae25dc851004a4a1 (diff) |
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.
Diffstat (limited to 'pkgs/by-name/cl')
-rw-r--r-- | pkgs/by-name/cl/clairvoyant/package.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/by-name/cl/clairvoyant/package.nix b/pkgs/by-name/cl/clairvoyant/package.nix index 14b5797db8f04..9889e1e43c3d1 100644 --- a/pkgs/by-name/cl/clairvoyant/package.nix +++ b/pkgs/by-name/cl/clairvoyant/package.nix @@ -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"; |