mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
998 B
Nix
41 lines
998 B
Nix
{ buildGoModule
|
|
, lib
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "asmfmt";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "klauspost";
|
|
repo = "asmfmt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-YxIVqPGsqxvOY0Qz4Jw5FuO9IbplCICjChosnHrSCgc=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
# 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" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
# There are no tests.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Go assembler formatter";
|
|
mainProgram = "asmfmt";
|
|
longDescription = ''
|
|
This will format your assembler code in a similar way that gofmt formats
|
|
your Go code.
|
|
'';
|
|
homepage = "https://github.com/klauspost/asmfmt";
|
|
changelog = "https://github.com/klauspost/asmfmt/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|