nixpkgs/pkgs/development/tools/pigeon/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
650 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pigeon";
version = "1.1.0";
src = fetchFromGitHub {
owner = "mna";
repo = "pigeon";
rev = "v${version}";
sha256 = "sha256-0Cp/OnFvVZj9UZgl3F5MCzemBaHI4smGWU46VQnhLOg=";
};
vendorHash = "sha256-JbBXRkxnB7LeeWdBLIQvyjvWo0zZ1EOuEUPXxHWiq+E=";
proxyVendor = true;
subPackages = [ "." ];
doCheck = false;
meta = {
homepage = "https://github.com/mna/pigeon";
description = "A PEG parser generator for Go";
mainProgram = "pigeon";
maintainers = with lib.maintainers; [ zimbatm ];
license = with lib.licenses; [ bsd3 ];
};
}