at 23.05-pre 31 lines 734 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, go 5}: 6 7buildGoModule rec { 8 pname = "maligned"; 9 version = "unstable-2022-02-04"; 10 rev = "d7cd9a96ae47d02b08234503b54709ad4ae82105"; 11 12 src = fetchFromGitHub { 13 owner = "mdempsky"; 14 repo = "maligned"; 15 inherit rev; 16 sha256 = "sha256-exljmDNtVhjJkvh0EomcbBXSsmQx4I59MHDfMWSQyKk="; 17 }; 18 19 vendorSha256 = "sha256-q/0lxZWk3a7brMsbLvZUSZ8XUHfWfx79qxjir1Vygx4="; 20 21 allowGoReference = true; 22 23 checkInputs = [ go ]; 24 25 meta = with lib; { 26 description = "Tool to detect Go structs that would take less memory if their fields were sorted"; 27 homepage = "https://github.com/mdempsky/maligned"; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ kalbasit ]; 30 }; 31}