diff --git a/pkgs/development/tools/exhaustive/default.nix b/pkgs/development/tools/exhaustive/default.nix new file mode 100644 index 00000000000..7445ae5236d --- /dev/null +++ b/pkgs/development/tools/exhaustive/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "exhaustive"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "nishanths"; + repo = "exhaustive"; + rev = "v${version}"; + hash = "sha256-vMoFIyZcAdObeQD5bGcQHlGpJv/a8yl/2HUVc8aDiIA="; + }; + + vendorHash = "sha256-i3Cgefe4krvH99N233IeEWkVt9AhdzROkJ5JBeTIaAs="; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "Check exhaustiveness of switch statements of enum-like constants in Go code"; + homepage = "https://github.com/nishanths/exhaustive"; + license = licenses.bsd2; + maintainers = with maintainers; [ meain ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f136e167c77..4ca340f435f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24748,6 +24748,8 @@ with pkgs; ejabberd = callPackage ../servers/xmpp/ejabberd { erlang = erlang_24; }; + exhaustive = callPackage ../development/tools/exhaustive { }; + exhibitor = callPackage ../servers/exhibitor { }; hyp = callPackage ../servers/http/hyp { };