btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / un / uni / package.nix
blob04ffa390d4b3906b5615c86e2b2f11d1705e9f08
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "uni";
8   version = "2.8.0";
10   src = fetchFromGitHub {
11     owner = "arp242";
12     repo = "uni";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-LSmQtndWBc7wCYBnyaeDb4Le4PQPcSO8lTp+CSC2jbc=";
15   };
17   vendorHash = "sha256-4w5L5Zg0LJX2v4mqLLjAvEdh3Ad69MLa97SR6RY3fT4=";
19   ldflags = [
20     "-s"
21     "-w"
22     "-X=main.version=${version}"
23   ];
25   meta = with lib; {
26     homepage = "https://github.com/arp242/uni";
27     description = "Query the Unicode database from the commandline, with good support for emojis";
28     changelog = "https://github.com/arp242/uni/releases/tag/v${version}";
29     license = licenses.mit;
30     maintainers = with maintainers; [ chvp ];
31     mainProgram = "uni";
32   };