lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "uni";
8 version = "2.5.1";
9
10 src = fetchFromGitHub {
11 owner = "arp242";
12 repo = "uni";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-kWiglMuJdcD7z2MDfz1MbItB8r9BJ7LUqfPfJa8QkLA=";
15 };
16
17 vendorHash = "sha256-6HNFCUSJA6oduCx/SCUQQeCHGS7ohaWRunixdwMurBw=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X=main.version=${version}"
23 ];
24
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 };
32}