Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
861 B
Nix
40 lines
861 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ineffassign";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gordonklaus";
|
|
repo = "ineffassign";
|
|
tag = "v${version}";
|
|
hash = "sha256-JVrAIspRL6XvDd/AnPFt9IJPQ0hY1KPwXvldAfwYkzU=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-fix-build.patch # run go get -u. Old dependency can't run correctly on go 1.23
|
|
];
|
|
|
|
vendorHash = "sha256-WpX5I9PK7xuln6BkIEW2qIF1K/BgaEu/gkJsz+ThVk0=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
allowGoReference = true;
|
|
|
|
meta = {
|
|
description = "Detect ineffectual assignments in Go code";
|
|
mainProgram = "ineffassign";
|
|
homepage = "https://github.com/gordonklaus/ineffassign";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
kalbasit
|
|
bot-wxt1221
|
|
];
|
|
};
|
|
}
|