about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/nasmfmt/default.nix
blob: eda6940f079f78378a2db2ae32aa79e2e67e8b0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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";
    mainProgram = "nasmfmt";
    homepage = "https://github.com/yamnikov-oleg/nasmfmt";
    license = licenses.mit;
    maintainers = with maintainers; [ ckie ];
  };
}