Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 33 lines 808 B view raw
1{ buildGoPackage 2, lib 3, fetchFromGitHub 4, fetchpatch 5}: 6 7buildGoPackage rec { 8 pname = "asmfmt"; 9 version = "1.2.1"; 10 11 goPackagePath = "github.com/klauspost/asmfmt"; 12 13 src = fetchFromGitHub { 14 owner = "klauspost"; 15 repo = "asmfmt"; 16 rev = "v${version}"; 17 sha256 = "0qwxb4yx12yl817vgbhs7acaj98lgk27dh50mb8sm9ccw1f43h9i"; 18 }; 19 20 goDeps = ./deps.nix; 21 22 # This package comes with its own version of goimports, gofmt and goreturns 23 # but these binaries are outdated and are offered by other packages. 24 subPackages = [ "cmd/asmfmt" ]; 25 26 meta = with lib; { 27 description = "Go Assembler Formatter"; 28 homepage = "https://github.com/klauspost/asmfmt"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ kalbasit ]; 31 platforms = platforms.linux ++ platforms.darwin; 32 }; 33}