nixpkgs/pkgs/by-name/ex/exhaustive/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
757 B
Nix
Raw Normal View History

2023-03-24 04:52:09 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2024-09-29 19:37:58 +00:00
, nix-update-script
2023-03-24 04:52:09 +00:00
}:
buildGoModule rec {
pname = "exhaustive";
2024-09-29 19:37:58 +00:00
version = "0.12.0";
2023-03-24 04:52:09 +00:00
src = fetchFromGitHub {
owner = "nishanths";
repo = "exhaustive";
rev = "v${version}";
2024-09-29 19:37:58 +00:00
hash = "sha256-OLIdtKzCqnBkzdUSIl+UlENeMl3zrBE47pLWPg+6qXw=";
2023-03-24 04:52:09 +00:00
};
2024-09-29 19:37:58 +00:00
vendorHash = "sha256-DyN2z6+lA/163k6TTQZ+ypm9s2EV93zvSo/yKQZXvCg=";
2023-03-24 04:52:09 +00:00
ldflags = [ "-s" "-w" ];
2024-09-29 19:37:58 +00:00
passthru = {
updateScript = nix-update-script { };
};
2023-03-24 04:52:09 +00:00
meta = with lib; {
description = "Check exhaustiveness of switch statements of enum-like constants in Go code";
mainProgram = "exhaustive";
2023-03-24 04:52:09 +00:00
homepage = "https://github.com/nishanths/exhaustive";
license = licenses.bsd2;
maintainers = with maintainers; [ meain ];
};
}