2022-04-20 14:40:48 +00:00
|
|
|
{ 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" ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|