2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, vala
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapGAppsHook4
|
|
|
|
# Clairvoyant shows a non-dismissable banner recommending the use of the Flatpak version
|
|
|
|
, hideUnsupportedVersionBanner ? false
|
2024-01-25 14:12:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-01-25 14:12:00 +00:00
|
|
|
pname = "clairvoyant";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.3";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cassidyjames";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "clairvoyant";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-eAcd8JJmcsz8dm049g5xsF6gPpNQ6ZvGGIhKAoMlPTU=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
2024-04-21 15:54:59 +00:00
|
|
|
wrapGAppsHook4
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
preFixup = lib.optionalString hideUnsupportedVersionBanner ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--set container true
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/cassidyjames/clairvoyant/releases/tag/${finalAttrs.version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Ask questions and get psychic answers";
|
|
|
|
homepage = "https://github.com/cassidyjames/clairvoyant";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
mainProgram = "com.github.cassidyjames.clairvoyant";
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ michaelgrahamevans ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|