nixpkgs/pkgs/development/tools/asmfmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1021 B
Nix
Raw Normal View History

2022-06-11 23:26:59 +00:00
{ buildGoModule
2018-10-31 18:12:56 +00:00
, lib
, fetchFromGitHub
}:
2022-06-11 23:26:59 +00:00
buildGoModule rec {
pname = "asmfmt";
2022-04-04 16:28:18 +00:00
version = "1.3.2";
2018-10-31 18:12:56 +00:00
src = fetchFromGitHub {
owner = "klauspost";
repo = "asmfmt";
rev = "v${version}";
2022-04-04 16:28:18 +00:00
sha256 = "sha256-YxIVqPGsqxvOY0Qz4Jw5FuO9IbplCICjChosnHrSCgc=";
2018-10-31 18:12:56 +00:00
};
2022-06-11 23:26:59 +00:00
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
2018-10-31 18:12:56 +00:00
# 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" ];
2022-06-11 23:26:59 +00:00
ldflags = [ "-s" "-w" ];
# There are no tests.
doCheck = false;
2018-10-31 18:12:56 +00:00
meta = with lib; {
2022-06-11 23:26:59 +00:00
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";
2022-06-11 23:26:59 +00:00
changelog = "https://github.com/klauspost/asmfmt/releases/tag/${src.rev}";
2018-10-31 18:12:56 +00:00
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}