Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
perl,
|
|
git,
|
|
versionCheckHook,
|
|
librusty_v8 ? callPackage ./librusty_v8.nix {
|
|
inherit (callPackage ./fetchers.nix { }) fetchLibrustyV8;
|
|
},
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "spacetimedb";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "clockworklabs";
|
|
repo = "spacetimedb";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-fUs3EdyOzUogEEhSOnpFrA1LeivEa/crmlhQcf2lGUE=";
|
|
};
|
|
|
|
cargoHash = "sha256-EWLfAyYN/U2kt03lmR8mVXc+j/DbjFat+RysNUt99QI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
perl
|
|
git
|
|
];
|
|
|
|
cargoBuildFlags = [ "-p spacetimedb-standalone -p spacetimedb-cli" ];
|
|
|
|
checkFlags = [
|
|
# requires wasm32-unknown-unknown target
|
|
"--skip=codegen"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
env.RUSTY_V8_ARCHIVE = librusty_v8;
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/spacetime";
|
|
versionCheckProgramArg = "--version";
|
|
|
|
postInstall = ''
|
|
mv $out/bin/spacetimedb-cli $out/bin/spacetime
|
|
'';
|
|
|
|
meta = {
|
|
description = "Full-featured relational database system that lets you run your application logic inside the database";
|
|
homepage = "https://github.com/clockworklabs/SpacetimeDB";
|
|
license = lib.licenses.bsl11;
|
|
mainProgram = "spacetime";
|
|
maintainers = with lib.maintainers; [ akotro ];
|
|
};
|
|
})
|