sail: init at 0.5.0 (#487889)

This commit is contained in:
Gaétan Lepage
2026-02-13 23:33:15 +00:00
committed by GitHub
2 changed files with 70 additions and 0 deletions
+6
View File
@@ -6084,6 +6084,12 @@
githubId = 10701143;
name = "David Crompton";
};
davidlghellin = {
email = "hola@devel0pez.com";
github = "davidlghellin";
githubId = 1321512;
name = "David López";
};
davidrusu = {
email = "davidrusu.me@gmail.com";
github = "davidrusu";
+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 ];
};
})