mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
ccec709a0b
Signed-off-by: lucasew <lucas59356@gmail.com>
32 lines
806 B
Nix
32 lines
806 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "bodyclose";
|
|
version = "0-unstable-2024-01-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timakin";
|
|
repo = "bodyclose";
|
|
rev = "f835fa56326ac81b2d54408f1a3a6c43bca4d5aa";
|
|
hash = "sha256-yPvBDJx6ECrSLDazdNDRl79iogsZO2qNWHuUuwQoRHU=";
|
|
};
|
|
|
|
vendorHash = "sha256-8grdJuV8aSETsJr2VazC/3ctfnGh3UgjOWD4/xf3uC8=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
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 ];
|
|
};
|
|
}
|