2022-04-20 16:40:48 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gojq }:
|
2022-03-01 04:50:03 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gojq";
|
2023-06-06 08:00:22 +02:00
|
|
|
version = "0.12.13";
|
2022-03-01 04:50:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-06 08:00:22 +02:00
|
|
|
hash = "sha256-tlnj0CCsPZRQjIZCvNPjN0JD6oqRDvdWOCYR3tYMPUA=";
|
2022-03-01 04:50:03 +01:00
|
|
|
};
|
|
|
|
|
2023-06-06 08:00:22 +02:00
|
|
|
vendorHash = "sha256-DVJZ35C+6SuhaaGDM3u+3fB1497qaW6oTByAUPVwhJI=";
|
2022-03-01 04:50:03 +01:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-04-20 16:40:48 +02:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-03-01 04:50:03 +01:00
|
|
|
package = gojq;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Go implementation of jq";
|
|
|
|
homepage = "https://github.com/itchyny/gojq";
|
2023-03-03 13:17:35 +01:00
|
|
|
changelog = "https://github.com/itchyny/gojq/blob/v${version}/CHANGELOG.md";
|
2022-03-01 04:50:03 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2023-08-30 16:05:35 +02:00
|
|
|
mainProgram = "gojq";
|
2022-03-01 04:50:03 +01:00
|
|
|
};
|
|
|
|
}
|