sail: init at 0.5.0

This commit is contained in:
David López
2026-02-13 22:31:12 +01:00
parent e4c9f0f349
commit bfb46724c3
+64
View File
@@ -0,0 +1,64 @@
{
lib,
rustPlatform,
fetchFromGitHub,
protobuf,
pkg-config,
python3,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sail";
version = "0.5.0";
src = fetchFromGitHub {
owner = "lakehq";
repo = "sail";
tag = "v${finalAttrs.version}";
hash = "sha256-JHeFJnPgDuRlUVHg5DrlC/rpeOKu/g9LfS2drpmpVa8=";
};
cargoHash = "sha256-pDB9tXDdPZ9YhAJC2Vax0/SCWiG3APVQQy/PgSSClUw=";
cargoBuildFlags = [
"-p"
"sail-cli"
];
cargoTestFlags = [
"-p"
"sail-cli"
];
nativeBuildInputs = [
protobuf
pkg-config
];
buildInputs = [
python3
];
env = {
PYO3_PYTHON = lib.getExe python3;
PROTOC = lib.getExe protobuf;
};
# Tests require a running server
doCheck = false;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Spark-compatible compute engine built on Apache Arrow and DataFusion";
homepage = "https://github.com/lakehq/sail";
changelog = "https://github.com/lakehq/sail/blob/v${finalAttrs.version}/docs/reference/changelog/index.md";
license = lib.licenses.asl20;
mainProgram = "sail";
maintainers = [ lib.maintainers.davidlghellin ];
};
})