blob: 6c55f069d25892d4247023e2a486651e9f5b97f1 (
plain) (
blame)
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
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "goverview";
version = "1.0.1";
src = fetchFromGitHub {
owner = "j3ssie";
repo = "goverview";
rev = "refs/tags/v${version}";
hash = "sha256-IgvpMuDwMK9IdPs1IRbPbpgr7xZuDX3boVT5d7Lb+3w=";
};
vendorHash = "sha256-i/m2s9e8PDfGmguNihynVI3Y7nAXC4weoWFXOwUVDSE=";
ldflags = [
"-w"
"-s"
];
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd goverview \
--bash <($out/bin/goverview completion bash) \
--fish <($out/bin/goverview completion fish) \
--zsh <($out/bin/goverview completion zsh)
'';
# Tests require network access
doCheck = false;
meta = with lib; {
description = "Tool to get an overview of the list of URLs";
mainProgram = "goverview";
homepage = "https://github.com/j3ssie/goverview";
changelog = "https://github.com/j3ssie/goverview/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|