2022-06-11 23:51:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2018-11-03 04:30:19 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-11 23:51:34 +00:00
|
|
|
, go
|
2018-11-03 04:30:19 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-11 23:51:34 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "maligned";
|
|
|
|
version = "unstable-2022-02-04";
|
|
|
|
rev = "d7cd9a96ae47d02b08234503b54709ad4ae82105";
|
2018-11-03 04:30:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdempsky";
|
|
|
|
repo = "maligned";
|
2022-06-11 23:51:34 +00:00
|
|
|
inherit rev;
|
|
|
|
sha256 = "sha256-exljmDNtVhjJkvh0EomcbBXSsmQx4I59MHDfMWSQyKk=";
|
2018-11-03 04:30:19 +00:00
|
|
|
};
|
|
|
|
|
2022-06-11 23:51:34 +00:00
|
|
|
vendorSha256 = "sha256-q/0lxZWk3a7brMsbLvZUSZ8XUHfWfx79qxjir1Vygx4=";
|
|
|
|
|
|
|
|
allowGoReference = true;
|
|
|
|
|
|
|
|
checkInputs = [ go ];
|
2018-11-03 04:30:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Tool to detect Go structs that would take less memory if their fields were sorted";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mdempsky/maligned";
|
2018-11-03 04:30:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|