2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-02-09 11:40:11 +00:00
|
|
|
, testers
|
|
|
|
, zed
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zed";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.16.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brimdata";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
sha256 = "sha256-xjE/9Sl4lpgUg1+giUw/14E3MehhFqJI5cYXaw/qVPE=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-X1rE6/sgpB6jeTjLZJL/a7ghjRJYTXSQDHB4PmEFUmU=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/zed" "cmd/zq" ];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-03-24 00:07:29 +00:00
|
|
|
"-X=github.com/brimdata/zed/cli.version=${version}"
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
zed-version = testers.testVersion {
|
|
|
|
package = zed;
|
|
|
|
};
|
|
|
|
zq-version = testers.testVersion {
|
|
|
|
package = zed;
|
|
|
|
command = "zq --version";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Novel data lake based on super-structured data";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://zed.brimdata.io";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dit7ya knl ];
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|