-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.nix
49 lines (43 loc) · 1.09 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
{
buildGoModule,
lib,
makeBinaryWrapper,
mpv,
rofi,
ueberzugpp,
withMpv ? true,
withRofi ? false,
withUeberzugpp ? false,
}: let
inherit (lib) optional optionalString;
path = optional withMpv mpv
++ optional withRofi rofi
++ optional withUeberzugpp ueberzugpp;
in
buildGoModule {
pname = "curd";
version = builtins.readFile ./VERSION.txt;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./cmd
./internal
./vendor
./go.mod
./go.sum
];
};
nativeBuildInputs = [makeBinaryWrapper];
vendorHash = null;
postFixup = optionalString (builtins.length path > 0) ''
wrapProgram $out/bin/curd --prefix PATH : ${lib.makeBinPath path}
'';
meta = {
description = "Watch anime in CLI with AniList Tracking, Discord RPC, and automatic intro/outro skipping";
homepage = "https://github.com/Wraient/curd";
license = lib.licenses.gpl3;
platforms = lib.platforms.unix;
maintainers = [lib.maintainers.diniamo];
mainProgram = "curd";
};
}