about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/bodyclose/default.nix
blob: e252223b883f6644ffcdf54248ada4f9fb1401bf (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
{ 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";
    homepage = "https://github.com/timakin/bodyclose";
    license = licenses.mit;
    maintainers = with maintainers; [ meain ];
  };
}