2022-12-28 21:21:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildGoModule rec {
|
2022-09-09 14:08:57 +00:00
|
|
|
pname = "nasmfmt";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "unstable-2022-09-15";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yamnikov-oleg";
|
|
|
|
repo = "nasmfmt";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "127dbe8e72376c67d7dff89010ccfb49fc7b533e";
|
|
|
|
hash = "sha256-1c7ZOdoM0/Us7cnTT3sds2P5pcCedrCfl0GqQBnf9Rk=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = null;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp ${./go.mod} go.mod
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Formatter for NASM source files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nasmfmt";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://github.com/yamnikov-oleg/nasmfmt";
|
|
|
|
license = licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|