Skip to content

Commit

Permalink
clairvoyant: Add wrapGAppsHook4 and use finalAttrs pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgrahamevans committed Jan 31, 2024
1 parent 543c6ce commit e0905a8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkgs/by-name/cl/clairvoyant/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
, pkg-config
, stdenv
, vala
, wrapGAppsHook4
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "clairvoyant";
version = "3.1.3";

src = fetchFromGitHub {
owner = "cassidyjames";
repo = pname;
rev = version;
repo = "clairvoyant";
rev = finalAttrs.version;
hash = "sha256-eAcd8JJmcsz8dm049g5xsF6gPpNQ6ZvGGIhKAoMlPTU=";
};

Expand All @@ -25,6 +26,7 @@ stdenv.mkDerivation rec {
ninja
pkg-config
vala
wrapGAppsHook4
];

buildInputs = [
Expand All @@ -33,11 +35,11 @@ stdenv.mkDerivation rec {
];

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";
changelog = "https://github.com/cassidyjames/clairvoyant/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ michaelgrahamevans ];
mainProgram = "com.github.cassidyjames.clairvoyant";
maintainers = with maintainers; [ michaelgrahamevans ];
};
}
})

0 comments on commit e0905a8

Please sign in to comment.