Merge pull request #250979 from aaronjheng/uni

uni: use sri hash
This commit is contained in:
Matthias Beyer 2023-08-23 18:45:46 +02:00 committed by GitHub
commit 89837aba44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,7 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "uni";
@ -7,17 +10,22 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "arp242";
repo = "uni";
rev = "v${version}";
sha256 = "kWiglMuJdcD7z2MDfz1MbItB8r9BJ7LUqfPfJa8QkLA=";
rev = "refs/tags/v${version}";
hash = "sha256-kWiglMuJdcD7z2MDfz1MbItB8r9BJ7LUqfPfJa8QkLA=";
};
vendorSha256 = "6HNFCUSJA6oduCx/SCUQQeCHGS7ohaWRunixdwMurBw=";
vendorHash = "sha256-6HNFCUSJA6oduCx/SCUQQeCHGS7ohaWRunixdwMurBw=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
meta = with lib; {
homepage = "https://github.com/arp242/uni";
description = "Query the Unicode database from the commandline, with good support for emojis";
changelog = "https://github.com/arp242/uni/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ chvp ];
};