File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments