2022-06-11 23:46:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2018-11-03 03:29:28 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-11 23:46:39 +00:00
|
|
|
, go
|
2018-11-03 03:29:28 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-11 23:46:39 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ineffassign";
|
|
|
|
version = "unstable-2021-09-04";
|
|
|
|
rev = "4cc7213b9bc8b868b2990c372f6fa057fa88b91c";
|
2018-11-03 03:29:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gordonklaus";
|
|
|
|
repo = "ineffassign";
|
2022-06-11 23:46:39 +00:00
|
|
|
inherit rev;
|
|
|
|
sha256 = "sha256-XLXANN9TOmrNOixWtlqnIC27u+0TW2P3s9MyeyVUcAQ=";
|
2018-11-03 03:29:28 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-QTgWicN2m2ughtLsEBMaQWfpDbmbL0nS5qaIKF3mTJM=";
|
2022-06-11 23:46:39 +00:00
|
|
|
|
|
|
|
allowGoReference = true;
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ go ];
|
2022-06-11 23:46:39 +00:00
|
|
|
|
2018-11-03 03:29:28 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Detect ineffectual assignments in Go code";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ineffassign";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gordonklaus/ineffassign";
|
2018-11-03 03:29:28 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|