Merge pull request #122732 from Ma27/jiq

jiq: init at 0.7.1
This commit is contained in:
WilliButz 2021-05-14 14:06:55 +02:00 committed by GitHub
commit 64f46d44d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ 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 ];
};
}

View File

@ -5861,6 +5861,8 @@ in
jq = callPackage ../development/tools/jq { };
jiq = callPackage ../development/tools/misc/jiq { };
jql = callPackage ../development/tools/jql { };
jo = callPackage ../development/tools/jo { };