nixpkgs/pkgs/development/tools/ineffassign/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
745 B
Nix

{ 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";
mainProgram = "ineffassign";
homepage = "https://github.com/gordonklaus/ineffassign";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}