2022-08-11 15:47:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-02-06 01:23:25 +00:00
|
|
|
, testers
|
|
|
|
, zed
|
2022-08-11 15:47:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zed";
|
2023-12-25 06:50:43 +00:00
|
|
|
version = "1.12.0";
|
2022-08-11 15:47:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brimdata";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-25 06:50:43 +00:00
|
|
|
sha256 = "sha256-mBJmAV7ax4F61gP8yeiJj/EQyJi3zaex6jT/CKzR3LU=";
|
2022-08-11 15:47:59 +00:00
|
|
|
};
|
|
|
|
|
2023-11-10 15:27:18 +00:00
|
|
|
vendorHash = "sha256-BWvMy1dc3PzAc3kDTXtI6Y8kjRGLWR+aUleItg5EgRU=";
|
2022-08-11 15:47:59 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/zed" "cmd/zq" ];
|
|
|
|
|
2023-02-06 01:23:25 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-03-16 21:37:43 +00:00
|
|
|
"-X=github.com/brimdata/zed/cli.version=${version}"
|
2023-02-06 01:23:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
zed-version = testers.testVersion {
|
|
|
|
package = zed;
|
|
|
|
};
|
|
|
|
zq-version = testers.testVersion {
|
|
|
|
package = zed;
|
|
|
|
command = "zq --version";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-08-11 15:47:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A novel data lake based on super-structured data";
|
2023-02-06 01:23:25 +00:00
|
|
|
homepage = "https://zed.brimdata.io";
|
|
|
|
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
|
2022-08-11 15:47:59 +00:00
|
|
|
license = licenses.bsd3;
|
2023-02-06 01:23:52 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya knl ];
|
2022-08-11 15:47:59 +00:00
|
|
|
};
|
|
|
|
}
|