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-02-09 11:40:11 +00:00
|
|
|
version = "1.5.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brimdata";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-er3BPQ10ERCIBn0xx0jjyMBybnUBMyX76tqYEYe2WYQ=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = "sha256-3PyyR9d5m33ohbcstREvTOtWwMIrbFNvFyBY1F+6R+4=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/zed" "cmd/zq" ];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/brimdata/zed/cli.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|