2023-08-23 17:27:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-05-10 09:55:17 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "uni";
|
2023-11-25 12:29:06 +01:00
|
|
|
version = "2.6.0";
|
2022-05-10 09:55:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arp242";
|
|
|
|
repo = "uni";
|
2023-08-23 17:27:06 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-25 12:29:06 +01:00
|
|
|
hash = "sha256-Ij/jUbXl3GkeNZmGJ82i++6VkOW46YFI9m83otY6M7Q=";
|
2022-05-10 09:55:17 +02:00
|
|
|
};
|
|
|
|
|
2023-11-25 12:29:06 +01:00
|
|
|
vendorHash = "sha256-88SSrGvZSs6Opi3IKSNNqptuOWMmtTQ4ZDR7ViuGugk=";
|
2022-05-10 09:55:17 +02:00
|
|
|
|
2023-08-23 17:27:06 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
2022-05-10 09:55:17 +02: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 17:27:06 +02:00
|
|
|
changelog = "https://github.com/arp242/uni/releases/tag/v${version}";
|
2022-05-10 09:55:17 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chvp ];
|
2024-02-11 03:19:15 +01:00
|
|
|
mainProgram = "uni";
|
2022-05-10 09:55:17 +02:00
|
|
|
};
|
|
|
|
}
|