zed: set version, clean up

This commit is contained in:
figsoda 2023-02-05 20:23:25 -05:00
parent 28116031e2
commit 0cb9271b71

View File

@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, zed
}:
buildGoModule rec {
@ -18,11 +20,27 @@ buildGoModule rec {
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 = "A novel data lake based on super-structured data";
homepage = "https://github.com/brimdata/zed";
homepage = "https://zed.brimdata.io";
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya ];
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
};
}