nixpkgs/pkgs/tools/text/gjo/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

27 lines
527 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gjo";
version = "1.0.3";
src = fetchFromGitHub {
owner = "skanehira";
repo = "gjo";
rev = version;
hash = "sha256-vEk5MZqwAMgqMLjwRJwnbx8nVyF3U2iUz0S3L0GmCh4=";
};
vendorHash = null;
meta = with lib; {
description = "Small utility to create JSON objects";
mainProgram = "gjo";
homepage = "https://github.com/skanehira/gjo";
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}