gojq: init at 0.12.7
This commit is contained in:
parent
e7d44538a7
commit
94adf26120
28
pkgs/development/tools/gojq/default.nix
Normal file
28
pkgs/development/tools/gojq/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, testVersion, gojq }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "gojq";
|
||||||
|
version = "0.12.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "itchyny";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-aQZLuwMFnggtwHZaE6KGBKJSbtmAz+Cs1RqLgvIsO24=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-b7TQywIOxzFnUNwgxGFR3W++QGHYUROBG7P/lTRmhGc=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
passthru.tests.version = testVersion {
|
||||||
|
package = gojq;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Pure Go implementation of jq";
|
||||||
|
homepage = "https://github.com/itchyny/gojq";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ aaronjheng ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -343,6 +343,8 @@ with pkgs;
|
||||||
|
|
||||||
glade = callPackage ../development/tools/glade { };
|
glade = callPackage ../development/tools/glade { };
|
||||||
|
|
||||||
|
gojq = callPackage ../development/tools/gojq { };
|
||||||
|
|
||||||
gpick = callPackage ../tools/misc/gpick { };
|
gpick = callPackage ../tools/misc/gpick { };
|
||||||
|
|
||||||
hobbes = callPackage ../development/tools/hobbes { };
|
hobbes = callPackage ../development/tools/hobbes { };
|
||||||
|
|
Loading…
Reference in a new issue