1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "urban-cli";
9 version = "0.2.4";
10
11 src = fetchFromGitHub {
12 owner = "tfkhdyt";
13 repo = "urban-cli";
14 rev = "v${version}";
15 hash = "sha256-URTEhtOiwb3IDyjRUtUmVTaeDXw4Beg0woWdGxeq098=";
16 };
17
18 vendorHash = "sha256-fEZzX+ecSWKITXczcwm5BGw5OWuixa4XKrEx8z0pxXQ=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = {
26 description = "Blazingly fast command line interface for Urban Dictionary";
27 homepage = "https://github.com/tfkhdyt/urban-cli";
28 license = lib.licenses.gpl3Only;
29 maintainers = with lib.maintainers; [ tfkhdyt ];
30 mainProgram = "urban-cli";
31 };
32}