mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
740 B
Nix
32 lines
740 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, go
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "maligned";
|
|
version = "unstable-2022-02-04";
|
|
rev = "d7cd9a96ae47d02b08234503b54709ad4ae82105";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdempsky";
|
|
repo = "maligned";
|
|
inherit rev;
|
|
sha256 = "sha256-exljmDNtVhjJkvh0EomcbBXSsmQx4I59MHDfMWSQyKk=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-q/0lxZWk3a7brMsbLvZUSZ8XUHfWfx79qxjir1Vygx4=";
|
|
|
|
allowGoReference = true;
|
|
|
|
nativeCheckInputs = [ go ];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to detect Go structs that would take less memory if their fields were sorted";
|
|
homepage = "https://github.com/mdempsky/maligned";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|