mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
32 lines
712 B
Nix
32 lines
712 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";
|
|
homepage = "https://github.com/gordonklaus/ineffassign";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|