about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/httpref/default.nix
blob: f2c0f58a309444d1d8ac1721840ac49af6fe42d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "httpref";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "dnnrly";
    repo = "httpref";
    rev = "v${version}";
    hash = "sha256-T5fR9cyqsM6Kw6kFqZedoSxyvFkkxNpuErscwiUTMa0=";
  };

  vendorHash = "sha256-9Ei4Lfll79f/+iuO5KesUMaTgkS9nq+1tma/dhOZ7Qw=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Command line, offline, access to HTTP status code, common header, and port references";
    mainProgram = "httpref";
    homepage = "https://github.com/dnnrly/httpref";
    changelog = "https://github.com/dnnrly/httpref/releases/tag/${src.rev}";
    license = licenses.asl20;
    maintainers = with maintainers; [ figsoda ];
  };
}