depot/third_party/nixpkgs/pkgs/development/tools/zed/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
987 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, zed
}:
buildGoModule rec {
pname = "zed";
version = "1.15.0";
src = fetchFromGitHub {
owner = "brimdata";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XY8vLCflNgxM75cTaUaqJPg8ZIm5dealC6K8es/5F5Q=";
};
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 ];
};
}