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 ]; };