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