From d8f440adbb171a2c9bd59749fe7962d03d64f448 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 May 2023 01:08:47 +0200 Subject: [PATCH] checkip: add changelog to meta --- pkgs/tools/networking/checkip/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/checkip/default.nix b/pkgs/tools/networking/checkip/default.nix index 24605b4ef9a6..d66616cfd7a5 100644 --- a/pkgs/tools/networking/checkip/default.nix +++ b/pkgs/tools/networking/checkip/default.nix @@ -10,18 +10,24 @@ buildGoModule rec { src = fetchFromGitHub { owner = "jreisinger"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-U0jHwKmGHpaHSiOYDeYCXiufw0JjzAmhBnINmFsqOJo="; + rev = "refs/tags/v${version}"; + hash = "sha256-U0jHwKmGHpaHSiOYDeYCXiufw0JjzAmhBnINmFsqOJo="; }; vendorHash = "sha256-9/z1mtZGqrvcvq8cWBpYN7kaPHaPqtyMwMNxuRRP4Cs="; + ldflags = [ + "-w" + "-s" + ]; + # Requires network doCheck = false; meta = with lib; { description = "CLI tool that checks an IP address using various public services"; homepage = "https://github.com/jreisinger/checkip"; + changelog = "https://github.com/jreisinger/checkip/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };