nixpkgs-suyu/pkgs/applications/misc/uni/default.nix

34 lines
766 B
Nix
Raw Permalink Normal View History

2023-08-23 17:27:06 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-05-10 09:55:17 +02:00
buildGoModule rec {
pname = "uni";
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}";
hash = "sha256-Ij/jUbXl3GkeNZmGJ82i++6VkOW46YFI9m83otY6M7Q=";
2022-05-10 09:55:17 +02: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
};
}