depot/third_party/nixpkgs/pkgs/development/tools/asmfmt/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

39 lines
1,021 B
Nix

{ buildGoModule
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "asmfmt";
version = "1.3.2";
src = fetchFromGitHub {
owner = "klauspost";
repo = "asmfmt";
rev = "v${version}";
sha256 = "sha256-YxIVqPGsqxvOY0Qz4Jw5FuO9IbplCICjChosnHrSCgc=";
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
# This package comes with its own version of goimports, gofmt and goreturns
# but these binaries are outdated and are offered by other packages.
subPackages = [ "cmd/asmfmt" ];
ldflags = [ "-s" "-w" ];
# There are no tests.
doCheck = false;
meta = with lib; {
description = "Go assembler formatter";
longDescription = ''
This will format your assembler code in a similar way that gofmt formats
your Go code.
'';
homepage = "https://github.com/klauspost/asmfmt";
changelog = "https://github.com/klauspost/asmfmt/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}