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