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";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.10.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brimdata";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-d/XJirgJlS4jTlmATQpFH+Yn7M4EdY0yNDKM1A2NjoA=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-n/7HV3dyV8qsJeEk+vikZvuM5G7nf0QOwVBtInJdU2k=";
|
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; {
|
|
|
|
description = "A 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
|
|
|
};
|
|
|
|
}
|