2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-26 10:26:21 +00:00
|
|
|
, go
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ineffassign";
|
|
|
|
version = "unstable-2021-09-04";
|
|
|
|
rev = "4cc7213b9bc8b868b2990c372f6fa057fa88b91c";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gordonklaus";
|
|
|
|
repo = "ineffassign";
|
2022-06-26 10:26:21 +00:00
|
|
|
inherit rev;
|
|
|
|
sha256 = "sha256-XLXANN9TOmrNOixWtlqnIC27u+0TW2P3s9MyeyVUcAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-QTgWicN2m2ughtLsEBMaQWfpDbmbL0nS5qaIKF3mTJM=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
allowGoReference = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ go ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Detect ineffectual assignments in Go code";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ineffassign";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gordonklaus/ineffassign";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|