nixpkgs/pkgs/development/tools/nasmfmt/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
664 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";
mainProgram = "nasmfmt";
homepage = "https://github.com/yamnikov-oleg/nasmfmt";
license = licenses.mit;
maintainers = with maintainers; [ ckie ];
};
}