main
1{
2 buildGoModule,
3 lib,
4 makeWrapper,
5 gh,
6 jayrat ? null,
7}:
8
9buildGoModule {
10 pname = "daily-plan";
11 version = "0.1.0";
12 src = ./.;
13
14 vendorHash = null;
15
16 nativeBuildInputs = [ makeWrapper ];
17
18 subPackages = [ "cmd/daily-plan" ];
19
20 # jira CLI is NOT bundled — expects the host's wrapper (injects token via passage)
21 postInstall = ''
22 wrapProgram $out/bin/daily-plan \
23 --prefix PATH : ${lib.makeBinPath ([ gh ] ++ lib.optional (jayrat != null) jayrat)}
24 '';
25
26 meta = {
27 description = "Pull from Jira/GitHub into org-mode daily planning";
28 license = lib.licenses.mit;
29 platforms = lib.platforms.unix;
30 mainProgram = "daily-plan";
31 };
32}