nixpkgs/pkgs/development/tools/jqp/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
614 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "jqp";
version = "0.5.0";
src = fetchFromGitHub {
owner = "noahgorstein";
repo = pname;
rev = "v${version}";
sha256 = "sha256-z2EKtSM+/wWGgwsHKDcxtc/M6UZ01AiTZaaCYCWjU7M=";
};
vendorHash = "sha256-7UiQjTgcwGOTEJEaWywEdZvpkM/MoXU3d6k8oVmUiW8=";
subPackages = [ "." ];
meta = with lib; {
description = "A TUI playground to experiment with jq";
mainProgram = "jqp";
homepage = "https://github.com/noahgorstein/jqp";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}