Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 31 lines 761 B view raw
1{ lib, buildGoModule, fetchFromGitHub, jq, makeWrapper }: 2 3buildGoModule rec { 4 pname = "jiq"; 5 version = "0.7.2"; 6 7 src = fetchFromGitHub { 8 owner = "fiatjaf"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-txhttYngN+dofA3Yp3gZUZPRRZWGug9ysXq1Q0RP7ig="; 12 }; 13 14 vendorSha256 = "sha256-ZUmOhPGy+24AuxdeRVF0Vnu8zDGFrHoUlYiDdfIV5lc="; 15 16 nativeBuildInputs = [ makeWrapper ]; 17 18 nativeCheckInputs = [ jq ]; 19 20 postInstall = '' 21 wrapProgram $out/bin/jiq \ 22 --prefix PATH : ${lib.makeBinPath [ jq ]} 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/fiatjaf/jiq"; 27 license = licenses.mit; 28 description = "jid on jq - interactive JSON query tool using jq expressions"; 29 maintainers = with maintainers; [ ]; 30 }; 31}