2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, testers
|
|
|
|
, zq
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zq";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "1.3.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brimdata";
|
|
|
|
repo = "zed";
|
|
|
|
rev = "v${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-DVQoWam5szELJ3OeIKHYF0CBZ0AJlhuIJRrdhqmyhQM=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
vendorSha256 = "sha256-2zSSjAoeb+7Nk/dxpvp5P2/bSJXgkA0TieTQHK4ym1Y=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|