zq: init at v1.2.0
This change adds zq, a part of the zed project https://zed.brimdata.io/. zq is a command-line tool that uses the Zed language for pipeline-style search and analytics. zq can query a variety of data formats in files, over HTTP, or in S3 storage. It is particularly fast when operating on data in the Zed-native ZNG format. The zq design philosophy blends the query/search-tool approach of jq, awk, and grep with the command-line, embedded database approach of sqlite and duckdb.
This commit is contained in:
parent
dbaaa8a676
commit
8a73271911
2 changed files with 36 additions and 0 deletions
34
pkgs/development/tools/zq/default.nix
Normal file
34
pkgs/development/tools/zq/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, testers
|
||||
, zq
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "zq";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brimdata";
|
||||
repo = "zed";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-BK4LB37jr/9O0sjYgFtnEkbFqTsp/1+hcmCNMFDPiPM=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-oAkQRUaEP/RNjpDH4U8XFVokf7KiLk0OWMX+U7qny70=";
|
||||
|
||||
subPackages = [ "cmd/zq" ];
|
||||
|
||||
ldflags = [ "-s" "-X" "github.com/brimdata/zed/cli.Version=${version}" ];
|
||||
|
||||
passthru.tests = testers.testVersion { package = zq; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command-line tool for processing data in diverse input formats, providing search, analytics, and extensive transformations using the Zed language";
|
||||
homepage = "https://zed.brimdata.io";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ knl ];
|
||||
};
|
||||
}
|
|
@ -1356,6 +1356,8 @@ with pkgs;
|
|||
|
||||
breitbandmessung = callPackage ../applications/networking/breitbandmessung { };
|
||||
|
||||
zq = callPackage ../development/tools/zq { buildGoModule = buildGo118Module; };
|
||||
|
||||
### APPLICATIONS/EMULATORS
|
||||
|
||||
atari800 = callPackage ../applications/emulators/atari800 { };
|
||||
|
|
Loading…
Reference in a new issue