nixpkgs/pkgs/development/tools/misc/aviator/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

29 lines
675 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "aviator";
version = "1.8.1";
src = fetchFromGitHub {
owner = "herrjulz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Oa4z8n+q7LKWMnwk+xj9UunzOa3ChaPBCTo828yYJGQ=";
};
patches = [
./bump-golang-x-sys.patch
];
deleteVendor = true;
vendorHash = "sha256-AJyxCE4DdAXRS+2sY4Zzu8NTEFKJoV1bopfOqOFKZfI=";
meta = with lib; {
description = "Merge YAML/JSON files in a in a convenient fashion";
mainProgram = "aviator";
homepage = "https://github.com/herrjulz/aviator";
license = licenses.mit;
maintainers = with maintainers; [ risson ];
};
}