2018-10-31 18:12:56 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "asmfmt";
|
2018-10-31 18:12:56 +00:00
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/klauspost/asmfmt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klauspost";
|
|
|
|
repo = "asmfmt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08mybfizcvck460axakycz9ndzcgwqilp5mmgm4bl8hfrn36mskw";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
excludes = ["README.md"];
|
|
|
|
url = "https://github.com/klauspost/asmfmt/commit/39a37c8aed8095e0fdfb07f78fc8acbd465d9627.patch";
|
|
|
|
sha256 = "18bc77l87mf0yvqc3adlakxz6wflyqfsc2wrmh9q0nlqghlmnw5k";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Go Assembler Formatter";
|
2020-04-01 01:11:51 +00: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;
|
|
|
|
};
|
|
|
|
}
|