diff options
Diffstat (limited to 'pkgs/development/tools/zed/default.nix')
-rw-r--r-- | pkgs/development/tools/zed/default.nix | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/pkgs/development/tools/zed/default.nix b/pkgs/development/tools/zed/default.nix index 5441946052b35..94c1cdaa01a9c 100644 --- a/pkgs/development/tools/zed/default.nix +++ b/pkgs/development/tools/zed/default.nix @@ -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"; - license = licenses.bsd3; - maintainers = with maintainers; [ dit7ya ]; + homepage = "https://zed.brimdata.io"; changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md"; + license = licenses.bsd3; + maintainers = with maintainers; [ dit7ya knl ]; }; } |