mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 18:54:42 +00:00
4beb6898f8
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.
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, gtk4
|
|
, libadwaita
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, stdenv
|
|
, vala
|
|
, wrapGAppsHook4
|
|
# Clairvoyant shows a non-dismissable banner recommending the use of the Flatpak version
|
|
, hideUnsupportedVersionBanner ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "clairvoyant";
|
|
version = "3.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cassidyjames";
|
|
repo = "clairvoyant";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-eAcd8JJmcsz8dm049g5xsF6gPpNQ6ZvGGIhKAoMlPTU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
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";
|
|
homepage = "https://github.com/cassidyjames/clairvoyant";
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "com.github.cassidyjames.clairvoyant";
|
|
maintainers = with maintainers; [ michaelgrahamevans ];
|
|
};
|
|
})
|