1{ lib
2, buildGoModule
3, fetchFromGitHub
4, testers
5, zed
6}:
7
8buildGoModule rec {
9 pname = "zed";
10 version = "1.7.0";
11
12 src = fetchFromGitHub {
13 owner = "brimdata";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-laqHFrRp83IE75RgAmxxTsq7c48RDapAJQFXWI1NO2o=";
17 };
18
19 vendorHash = "sha256-Uy8GR+mNVElx+MOu8IxHjBhp1GT5nLqqizQH9q1s0wA=";
20
21 subPackages = [ "cmd/zed" "cmd/zq" ];
22
23 ldflags = [
24 "-s"
25 "-w"
26 "-X=github.com/brimdata/zed/cli.version=${version}"
27 ];
28
29 passthru.tests = {
30 zed-version = testers.testVersion {
31 package = zed;
32 };
33 zq-version = testers.testVersion {
34 package = zed;
35 command = "zq --version";
36 };
37 };
38
39 meta = with lib; {
40 description = "A novel data lake based on super-structured data";
41 homepage = "https://zed.brimdata.io";
42 changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ dit7ya knl ];
45 };
46}