98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
46 lines
987 B
Nix
46 lines
987 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, zed
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "zed";
|
|
version = "1.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brimdata";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xjE/9Sl4lpgUg1+giUw/14E3MehhFqJI5cYXaw/qVPE=";
|
|
};
|
|
|
|
vendorHash = "sha256-X1rE6/sgpB6jeTjLZJL/a7ghjRJYTXSQDHB4PmEFUmU=";
|
|
|
|
subPackages = [ "cmd/zed" "cmd/zq" ];
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Novel data lake based on super-structured data";
|
|
homepage = "https://zed.brimdata.io";
|
|
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dit7ya knl ];
|
|
};
|
|
}
|