mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
29 lines
635 B
Nix
29 lines
635 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nasmfmt";
|
|
version = "unstable-2022-09-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yamnikov-oleg";
|
|
repo = "nasmfmt";
|
|
rev = "127dbe8e72376c67d7dff89010ccfb49fc7b533e";
|
|
hash = "sha256-1c7ZOdoM0/Us7cnTT3sds2P5pcCedrCfl0GqQBnf9Rk=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
preBuild = ''
|
|
cp ${./go.mod} go.mod
|
|
'';
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "Formatter for NASM source files";
|
|
homepage = "https://github.com/yamnikov-oleg/nasmfmt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ckie ];
|
|
};
|
|
}
|