about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/maligned/default.nix
blob: ae38fdc91e3dd723ae8c2a46695e6c61b6f8b45a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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=";
  };

  vendorHash = "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";
    mainProgram = "maligned";
    homepage = "https://github.com/mdempsky/maligned";
    license = licenses.bsd3;
    maintainers = with maintainers; [ kalbasit ];
  };
}