nixpkgs/pkgs/by-name/as/asmfmt/package.nix
2025-08-08 14:47:20 +00:00

45 lines
1010 B
Nix

{
buildGoModule,
lib,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "asmfmt";
version = "1.3.2";
src = fetchFromGitHub {
owner = "klauspost";
repo = "asmfmt";
tag = "v${version}";
hash = "sha256-YxIVqPGsqxvOY0Qz4Jw5FuO9IbplCICjChosnHrSCgc=";
};
vendorHash = null;
# 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 = {
description = "Go assembler formatter";
mainProgram = "asmfmt";
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/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kalbasit ];
};
}