2023-08-23 15:27:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-05-10 07:55:17 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "uni";
|
|
|
|
version = "2.5.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arp242";
|
|
|
|
repo = "uni";
|
2023-08-23 15:27:06 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-23 13:46:27 +00:00
|
|
|
hash = "sha256-kWiglMuJdcD7z2MDfz1MbItB8r9BJ7LUqfPfJa8QkLA=";
|
2022-05-10 07:55:17 +00:00
|
|
|
};
|
|
|
|
|
2023-08-23 13:46:27 +00:00
|
|
|
vendorHash = "sha256-6HNFCUSJA6oduCx/SCUQQeCHGS7ohaWRunixdwMurBw=";
|
2022-05-10 07:55:17 +00:00
|
|
|
|
2023-08-23 15:27:06 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
2022-05-10 07:55:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/arp242/uni";
|
|
|
|
description = "Query the Unicode database from the commandline, with good support for emojis";
|
2023-08-23 15:27:06 +00:00
|
|
|
changelog = "https://github.com/arp242/uni/releases/tag/v${version}";
|
2022-05-10 07:55:17 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chvp ];
|
|
|
|
};
|
|
|
|
}
|