diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2023-08-23 18:45:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 18:45:46 +0200 |
commit | 89837aba44c07f4d5c8f9f3601048b199330b44f (patch) | |
tree | 282840e3cf3ea50a02c0a72ae02debd2774bfc1e /pkgs/applications | |
parent | 9201b5ff357e781bf014d0330d18555695df7ba8 (diff) | |
parent | f1cacf8bcc457d55bb50a5781c8cdf889bf75b5e (diff) |
Merge pull request #250979 from aaronjheng/uni
uni: use sri hash
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/uni/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/applications/misc/uni/default.nix b/pkgs/applications/misc/uni/default.nix index 61ea6578787f2..5f7db6f85bf7a 100644 --- a/pkgs/applications/misc/uni/default.nix +++ b/pkgs/applications/misc/uni/default.nix @@ -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 ]; }; |