nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule {
8 pname = "nasmfmt";
9 version = "unstable-2022-09-15";
10
11 src = fetchFromGitHub {
12 owner = "yamnikov-oleg";
13 repo = "nasmfmt";
14 rev = "127dbe8e72376c67d7dff89010ccfb49fc7b533e";
15 hash = "sha256-1c7ZOdoM0/Us7cnTT3sds2P5pcCedrCfl0GqQBnf9Rk=";
16 };
17
18 vendorHash = null;
19
20 preBuild = ''
21 go mod init github.com/yamnikov-oleg/nasmfmt
22 '';
23
24 ldflags = [ "-s" ];
25
26 meta = {
27 description = "Formatter for NASM source files";
28 mainProgram = "nasmfmt";
29 homepage = "https://github.com/yamnikov-oleg/nasmfmt";
30 license = lib.licenses.mit;
31 maintainers = [ ];
32 };
33}