about summary refs log tree commit diff
path: root/pkgs/by-name/ur/urban-cli/package.nix
blob: fb05c8e7686e3b6d21a45edd37e384726120a958 (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
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "urban-cli";
  version = "0.2.4";

  src = fetchFromGitHub {
    owner = "tfkhdyt";
    repo = "urban-cli";
    rev = "v${version}";
    hash = "sha256-URTEhtOiwb3IDyjRUtUmVTaeDXw4Beg0woWdGxeq098=";
  };

  vendorHash = "sha256-fEZzX+ecSWKITXczcwm5BGw5OWuixa4XKrEx8z0pxXQ=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Blazingly fast command line interface for Urban Dictionary";
    homepage = "https://github.com/tfkhdyt/urban-cli";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ tfkhdyt ];
    mainProgram = "urban-cli";
  };
}