Merge pull request #222842 from meain/exhaustive
This commit is contained in:
commit
75138e0814
27
pkgs/development/tools/exhaustive/default.nix
Normal file
27
pkgs/development/tools/exhaustive/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user