Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule 2, lib 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "asmfmt"; 8 version = "1.3.2"; 9 10 src = fetchFromGitHub { 11 owner = "klauspost"; 12 repo = "asmfmt"; 13 rev = "v${version}"; 14 sha256 = "sha256-YxIVqPGsqxvOY0Qz4Jw5FuO9IbplCICjChosnHrSCgc="; 15 }; 16 17 vendorSha256 = null; 18 19 # This package comes with its own version of goimports, gofmt and goreturns 20 # but these binaries are outdated and are offered by other packages. 21 subPackages = [ "cmd/asmfmt" ]; 22 23 ldflags = [ "-s" "-w" ]; 24 25 # There are no tests. 26 doCheck = false; 27 28 meta = with lib; { 29 description = "Go assembler formatter"; 30 longDescription = '' 31 This will format your assembler code in a similar way that gofmt formats 32 your Go code. 33 ''; 34 homepage = "https://github.com/klauspost/asmfmt"; 35 changelog = "https://github.com/klauspost/asmfmt/releases/tag/${src.rev}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ kalbasit ]; 38 }; 39}