Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / exhaustive / default.nix
blob7445ae5236dbb7b506e69901720dadc47aa531ea
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "exhaustive";
8   version = "0.10.0";
10   src = fetchFromGitHub {
11     owner = "nishanths";
12     repo = "exhaustive";
13     rev = "v${version}";
14     hash = "sha256-vMoFIyZcAdObeQD5bGcQHlGpJv/a8yl/2HUVc8aDiIA=";
15   };
17   vendorHash = "sha256-i3Cgefe4krvH99N233IeEWkVt9AhdzROkJ5JBeTIaAs=";
19   ldflags = [ "-s" "-w" ];
21   meta = with lib; {
22     description = "Check exhaustiveness of switch statements of enum-like constants in Go code";
23     homepage = "https://github.com/nishanths/exhaustive";
24     license = licenses.bsd2;
25     maintainers = with maintainers; [ meain ];
26   };