2018-10-31 19:12:56 +01:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "asmfmt";
|
2021-03-25 23:02:16 +01:00
|
|
|
version = "1.2.3";
|
2018-10-31 19:12:56 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/klauspost/asmfmt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klauspost";
|
|
|
|
repo = "asmfmt";
|
|
|
|
rev = "v${version}";
|
2021-03-25 23:02:16 +01:00
|
|
|
sha256 = "0f2cgwxs2b2kpq5348h8hjkcqc40p8ajapzpcy9ia2fsmsn2a2s4";
|
2018-10-31 19:12:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2020-05-01 06:18:07 +02: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" ];
|
|
|
|
|
2018-10-31 19:12:56 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Go Assembler Formatter";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/klauspost/asmfmt";
|
2018-10-31 19:12:56 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|