2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gojq";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.12.13";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-tlnj0CCsPZRQjIZCvNPjN0JD6oqRDvdWOCYR3tYMPUA=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-DVJZ35C+6SuhaaGDM3u+3fB1497qaW6oTByAUPVwhJI=";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-04-15 01:41:22 +00:00
|
|
|
package = gojq;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Go implementation of jq";
|
|
|
|
homepage = "https://github.com/itchyny/gojq";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/itchyny/gojq/blob/v${version}/CHANGELOG.md";
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "gojq";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|