Commit 0cb9271b authored by figsoda's avatar figsoda
Browse files

zed: set version, clean up

parent 28116031
Loading
Loading
Loading
Loading
+20 −2
Original line number Diff line number Diff line
{ 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";
  };
}