Files
nixpkgs/pkgs/development/tools/misc/httpref/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
745 B
Nix

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