{ lib , buildGoModule , fetchFromGitHub , fq , testers }: buildGoModule rec { pname = "fq"; version = "0.12.0"; src = fetchFromGitHub { owner = "wader"; repo = "fq"; rev = "v${version}"; hash = "sha256-XvR2Ja3x75unzs7BeyuppmyzDdTZw+BlUmnjqfDTQI0="; }; vendorHash = "sha256-QYeOd144ko04Aowi1gtPxgR+3mo7DozCca2xtEN8ARs="; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; subPackages = [ "." ]; passthru.tests = testers.testVersion { package = fq; }; meta = with lib; { description = "jq for binary formats"; mainProgram = "fq"; homepage = "https://github.com/wader/fq"; license = licenses.mit; maintainers = with maintainers; [ siraben ]; }; }