Skip to content

Commit d884368

Browse files
authored
gocatcli: init at 1.0.6 (#388101)
2 parents be55d4a + 18d69a9 commit d884368

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
lib,
3+
stdenv,
4+
buildGoModule,
5+
fetchFromGitHub,
6+
installShellFiles,
7+
versionCheckHook,
8+
nix-update-script,
9+
}:
10+
11+
buildGoModule rec {
12+
pname = "gocatcli";
13+
version = "1.0.6";
14+
15+
src = fetchFromGitHub {
16+
owner = "deadc0de6";
17+
repo = "gocatcli";
18+
tag = "v${version}";
19+
hash = "sha256-qB7BDPDGcngPhd82V4FrsycFd7CNb6hPaHJQ+ECmo48=";
20+
};
21+
22+
vendorHash = "sha256-gJfqnxCTKXmTH8L4qjSXzTr+LsP+jzzivfQOplRkfao=";
23+
24+
nativeBuildInputs = [ installShellFiles ];
25+
26+
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
27+
installShellCompletion --cmd gocatcli \
28+
--bash <($out/bin/gocatcli completion bash) \
29+
--fish <($out/bin/gocatcli completion fish) \
30+
--zsh <($out/bin/gocatcli completion zsh)
31+
'';
32+
33+
nativeCheckInputs = [ versionCheckHook ];
34+
doCheck = true;
35+
36+
passthru.updateScript = nix-update-script { };
37+
38+
meta = {
39+
homepage = "https://github.com/deadc0de6/gocatcli";
40+
changelog = "https://github.com/deadc0de6/gocatcli/releases/tag/v${version}";
41+
description = "The command line catalog tool for your offline data";
42+
longDescription = ''
43+
gocatcli is a catalog tool for your offline data. It indexes external
44+
media in a catalog file and allows to quickly find specific files or even
45+
navigate in the catalog as if it was a mounted drive
46+
'';
47+
license = lib.licenses.gpl3Only;
48+
maintainers = with lib.maintainers; [
49+
nadir-ishiguro
50+
];
51+
mainProgram = "gocatcli";
52+
};
53+
}

0 commit comments

Comments
 (0)