Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "checkip"; 9 version = "0.47.7"; 10 11 src = fetchFromGitHub { 12 owner = "jreisinger"; 13 repo = "checkip"; 14 tag = "v${version}"; 15 hash = "sha256-bjKRHIY9OIEft//g8VHKHTUrwWn8UU38SPP4IdPbIQE="; 16 }; 17 18 vendorHash = "sha256-hTjSOufyrOKdY6wdPXvbpXwgWiHIRI+t4ByqHBY6cPQ="; 19 20 ldflags = [ 21 "-w" 22 "-s" 23 ]; 24 25 # Requires network 26 doCheck = false; 27 28 meta = { 29 description = "CLI tool that checks an IP address using various public services"; 30 homepage = "https://github.com/jreisinger/checkip"; 31 changelog = "https://github.com/jreisinger/checkip/releases/tag/v${version}"; 32 license = lib.licenses.asl20; 33 maintainers = with lib.maintainers; [ fab ]; 34 mainProgram = "checkip"; 35 }; 36}