nixpkgs/pkgs/development/tools/bodyclose/default.nix
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

29 lines
728 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "bodyclose";
version = "2023-04-21";
src = fetchFromGitHub {
owner = "timakin";
repo = "bodyclose";
rev = "574207250966ef48b7c65325648b17ff2c3a900a";
hash = "sha256-qUt8uOk1vgj2rtzTevGh9c4McxbFKgEw83pq7IAlRdg=";
};
vendorHash = "sha256-TSYaY7Rg0ZoXdIN1sTNmgjC4PcVcgwSTuE43FYbzlAs=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Golang linter to check whether HTTP response body is closed and a re-use of TCP connection is not blocked";
mainProgram = "bodyclose";
homepage = "https://github.com/timakin/bodyclose";
license = licenses.mit;
maintainers = with maintainers; [ meain ];
};
}