depot/third_party/nixpkgs/pkgs/development/tools/zed/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

46 lines
989 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, zed
}:
buildGoModule rec {
pname = "zed";
version = "1.10.0";
src = fetchFromGitHub {
owner = "brimdata";
repo = pname;
rev = "v${version}";
sha256 = "sha256-d/XJirgJlS4jTlmATQpFH+Yn7M4EdY0yNDKM1A2NjoA=";
};
vendorHash = "sha256-n/7HV3dyV8qsJeEk+vikZvuM5G7nf0QOwVBtInJdU2k=";
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://zed.brimdata.io";
changelog = "https://github.com/brimdata/zed/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya knl ];
};
}