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-03-02 23:38:41 +01:00
|
|
|
version = "0.12.12";
|
2022-03-01 04:50:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-02 23:38:41 +01:00
|
|
|
hash = "sha256-axiIHy6vNs0ySVP4UnYZ9J+GeAOz3LJ9vOP1xT4dcME=";
|
2022-03-01 04:50:03 +01:00
|
|
|
};
|
|
|
|
|
2023-03-02 23:38:41 +01:00
|
|
|
vendorHash = "sha256-kHwCh/6yaPaFce5k3NgAQ1GsoVmvmfIJujVaMwqrLBM=";
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
};
|
|
|
|
}
|