depot/third_party/nixpkgs/pkgs/development/tools/gojq/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

28 lines
668 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
buildGoModule rec {
pname = "gojq";
version = "0.12.8";
src = fetchFromGitHub {
owner = "itchyny";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WcPvsThYgXwYXwXyylOqopTZOfsXmDU4wbhEdS3neA8=";
};
vendorSha256 = "sha256-fFW+gWdGMxDApcyR6dy0491WvQcVMAJ5dgMQqgNmOkw=";
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 ];
};
}