nixpkgs/pkgs/development/tools/gojq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
668 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
2022-03-01 03:50:03 +00:00
buildGoModule rec {
pname = "gojq";
2022-06-01 15:27:50 +00:00
version = "0.12.8";
2022-03-01 03:50:03 +00:00
src = fetchFromGitHub {
owner = "itchyny";
repo = pname;
rev = "v${version}";
2022-06-01 15:27:50 +00:00
sha256 = "sha256-WcPvsThYgXwYXwXyylOqopTZOfsXmDU4wbhEdS3neA8=";
2022-03-01 03:50:03 +00:00
};
2022-06-01 15:27:50 +00:00
vendorSha256 = "sha256-fFW+gWdGMxDApcyR6dy0491WvQcVMAJ5dgMQqgNmOkw=";
2022-03-01 03:50:03 +00:00
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
2022-03-01 03:50:03 +00:00
package = gojq;
};
meta = with lib; {
description = "Pure Go implementation of jq";
homepage = "https://github.com/itchyny/gojq";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
};
}