{ lib, buildGoModule, fetchFromGitHub, testers, gojq }: buildGoModule rec { pname = "gojq"; version = "0.12.11"; src = fetchFromGitHub { owner = "itchyny"; repo = pname; rev = "v${version}"; hash = "sha256-xJx3ge+8cIGL1j5vnU4JhCcwmXIRhJ66PYnEG223Fbc="; }; vendorHash = "sha256-BnDtHqqU/kFJyeG1g4UZ51eSnUlbQ6eRKTFoz6kxl0s="; ldflags = [ "-s" "-w" ]; passthru.tests.version = testers.testVersion { package = gojq; }; meta = with lib; { description = "Pure Go implementation of jq"; homepage = "https://github.com/itchyny/gojq"; license = licenses.mit; maintainers = with maintainers; [ aaronjheng ]; }; }