{ lib , buildGoModule , fetchFromGitHub , fq , testers }: buildGoModule rec { pname = "fq"; version = "0.13.0"; src = fetchFromGitHub { owner = "wader"; repo = "fq"; rev = "v${version}"; hash = "sha256-bHyLEJiSM42arZiM1VVKga6wp3Q3EAMgUrFnh3hbk9M="; }; vendorHash = "sha256-in+c8Wl7ffXAqMvs+3K6dzAd5ePqBpRaxU2iM81moQM="; 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 ]; }; }