-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
38 lines (32 loc) · 867 Bytes
/
default.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
{
installShellFiles,
buildGoModule,
lib,
}:
buildGoModule rec {
pname = "nao";
version = "3.3.0";
src = builtins.path {
name = "nao";
path = ./.;
};
vendorHash = "sha256-vpZt2SYjS6KsVA+Vee+r2UvRpDDGv0XoF0DHW9VGsbQ=";
doCheck = false;
buildTarget = "./cmd/nao";
ldflags = ["-X main.version=${version}"];
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd nao \
--bash <($out/bin/nao --debug completion bash) \
--fish <($out/bin/nao --debug completion fish) \
--zsh <($out/bin/nao --debug completion zsh)
'';
meta = with lib; {
description = "A CLI tool to take notes without worrying about the path where the file is";
homepage = "https://github.com/luisnquin/nao";
license = licenses.mit;
maintainers = with maintainers; [luisnquin];
};
}