nixpkgs/pkgs/by-name/un/uni/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
766 B
Nix
Raw Normal View History

2023-08-23 15:27:06 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-05-10 07:55:17 +00:00
buildGoModule rec {
pname = "uni";
2024-09-13 06:55:12 +00:00
version = "2.8.0";
2022-05-10 07:55:17 +00:00
src = fetchFromGitHub {
owner = "arp242";
repo = "uni";
2023-08-23 15:27:06 +00:00
rev = "refs/tags/v${version}";
2024-09-13 06:55:12 +00:00
hash = "sha256-LSmQtndWBc7wCYBnyaeDb4Le4PQPcSO8lTp+CSC2jbc=";
2022-05-10 07:55:17 +00:00
};
2024-09-13 06:55:12 +00:00
vendorHash = "sha256-4w5L5Zg0LJX2v4mqLLjAvEdh3Ad69MLa97SR6RY3fT4=";
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "uni";
2022-05-10 07:55:17 +00:00
};
}