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

24 lines
573 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "gojsontoyaml";
version = "0.1.0";
src = fetchFromGitHub {
owner = "brancz";
repo = "gojsontoyaml";
rev = "v${version}";
sha256 = "sha256-ebxz2uTH7XwD3j6JnsfET6aCGYjvsCjow/sU9pagg50=";
};
vendorHash = null;
meta = with lib; {
description = "Simply tool to convert json to yaml written in Go";
mainProgram = "gojsontoyaml";
homepage = "https://github.com/brancz/gojsontoyaml";
license = licenses.mit;
maintainers = [ maintainers.bryanasdev000 ];
};
}