-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
/
package.nix
58 lines (53 loc) · 1.1 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
lib,
fetchFromGitHub,
stdenvNoCC,
makeWrapper,
gh,
gnugrep,
fzf,
python3,
withDelta ? false,
delta,
withBat ? false,
bat,
}:
let
binPath = lib.makeBinPath (
[
gh
gnugrep
fzf
python3
]
++ lib.optional withBat bat
++ lib.optional withDelta delta
);
in
stdenvNoCC.mkDerivation {
pname = "gh-notify";
version = "0-unstable-2024-04-24";
src = fetchFromGitHub {
owner = "meiji163";
repo = "gh-notify";
rev = "5c2db4cffe39f312d25979dc366f2bc219def9a2";
hash = "sha256-AgpNjeRz0RHf8D3ib7x1zixBxh32UUZJleub5W/suuM=";
};
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
install -D -m755 "gh-notify" "$out/bin/gh-notify"
'';
postFixup = ''
wrapProgram "$out/bin/gh-notify" --prefix PATH : "${binPath}"
'';
meta = with lib; {
homepage = "https://github.com/meiji163/gh-notify";
description = "GitHub CLI extension to display GitHub notifications";
maintainers = with maintainers; [ loicreynier ];
license = licenses.unlicense;
mainProgram = "gh-notify";
platforms = platforms.all;
};
}