depot/third_party/nixpkgs/pkgs/development/tools/misc/jiq/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

31 lines
754 B
Nix

{ lib, buildGoModule, fetchFromGitHub, jq, makeWrapper }:
buildGoModule rec {
pname = "jiq";
version = "0.7.1";
src = fetchFromGitHub {
owner = "fiatjaf";
repo = pname;
rev = version;
sha256 = "sha256-EPhnfgmn0AufuxwcwRrEEQk+RD97akFJSzngkTl4LmY=";
};
vendorSha256 = "sha256-ZUmOhPGy+24AuxdeRVF0Vnu8zDGFrHoUlYiDdfIV5lc=";
nativeBuildInputs = [ makeWrapper ];
checkInputs = [ jq ];
postInstall = ''
wrapProgram $out/bin/jiq \
--prefix PATH : ${lib.makeBinPath [ jq ]}
'';
meta = with lib; {
homepage = "https://github.com/fiatjaf/jiq";
license = licenses.mit;
description = "jid on jq - interactive JSON query tool using jq expressions";
maintainers = with maintainers; [ ma27 ];
};
}