nixpkgs/pkgs/development/tools/maligned/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
768 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=";
};
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 ];
};
}