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 = "httpref"; 9 version = "1.6.1"; 10 11 src = fetchFromGitHub { 12 owner = "dnnrly"; 13 repo = "httpref"; 14 rev = "v${version}"; 15 hash = "sha256-T5fR9cyqsM6Kw6kFqZedoSxyvFkkxNpuErscwiUTMa0="; 16 }; 17 18 vendorHash = "sha256-9Ei4Lfll79f/+iuO5KesUMaTgkS9nq+1tma/dhOZ7Qw="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 meta = with lib; { 26 description = "Command line, offline, access to HTTP status code, common header, and port references"; 27 mainProgram = "httpref"; 28 homepage = "https://github.com/dnnrly/httpref"; 29 changelog = "https://github.com/dnnrly/httpref/releases/tag/${src.rev}"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ figsoda ]; 32 }; 33}