about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/ineffassign/default.nix
blob: cd4f41ad670eb2c2c0c27c1bad17582a1412f2c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildGoModule
, fetchFromGitHub
, go
}:

buildGoModule rec {
  pname = "ineffassign";
  version = "unstable-2021-09-04";
  rev = "4cc7213b9bc8b868b2990c372f6fa057fa88b91c";

  src = fetchFromGitHub {
    owner = "gordonklaus";
    repo = "ineffassign";
    inherit rev;
    sha256 = "sha256-XLXANN9TOmrNOixWtlqnIC27u+0TW2P3s9MyeyVUcAQ=";
  };

  vendorHash = "sha256-QTgWicN2m2ughtLsEBMaQWfpDbmbL0nS5qaIKF3mTJM=";

  allowGoReference = true;

  nativeCheckInputs = [ go ];

  meta = with lib; {
    description = "Detect ineffectual assignments in Go code";
    homepage = "https://github.com/gordonklaus/ineffassign";
    license = licenses.mit;
    maintainers = with maintainers; [ kalbasit ];
  };
}