Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / ineffassign / default.nix
blobcd4f41ad670eb2c2c0c27c1bad17582a1412f2c8
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , go
5 }:
7 buildGoModule rec {
8   pname = "ineffassign";
9   version = "unstable-2021-09-04";
10   rev = "4cc7213b9bc8b868b2990c372f6fa057fa88b91c";
12   src = fetchFromGitHub {
13     owner = "gordonklaus";
14     repo = "ineffassign";
15     inherit rev;
16     sha256 = "sha256-XLXANN9TOmrNOixWtlqnIC27u+0TW2P3s9MyeyVUcAQ=";
17   };
19   vendorHash = "sha256-QTgWicN2m2ughtLsEBMaQWfpDbmbL0nS5qaIKF3mTJM=";
21   allowGoReference = true;
23   nativeCheckInputs = [ go ];
25   meta = with lib; {
26     description = "Detect ineffectual assignments in Go code";
27     homepage = "https://github.com/gordonklaus/ineffassign";
28     license = licenses.mit;
29     maintainers = with maintainers; [ kalbasit ];
30   };