fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 pkg-config,
6 perl,
7 git,
8 versionCheckHook,
9}:
10rustPlatform.buildRustPackage (finalAttrs: {
11 pname = "spacetimedb";
12 version = "1.2.0";
13
14 src = fetchFromGitHub {
15 owner = "clockworklabs";
16 repo = "spacetimedb";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-6Fqv3g9e/9i5JMYHwbymm0n2mBEI0207TAyu/nF39Xk=";
19 };
20
21 cargoHash = "sha256-N7A7GAdk9j84qtKHTMtloU469FRwiYtqUdSytFVidlA=";
22
23 nativeBuildInputs = [
24 pkg-config
25 perl
26 git
27 ];
28
29 cargoBuildFlags = [ "-p spacetimedb-standalone -p spacetimedb-cli" ];
30
31 checkFlags = [
32 # requires wasm32-unknown-unknown target
33 "--skip=codegen"
34 ];
35
36 doInstallCheck = true;
37 nativeInstallCheckInputs = [ versionCheckHook ];
38 versionCheckProgram = "${placeholder "out"}/bin/spacetime";
39 versionCheckProgramArg = "--version";
40
41 postInstall = ''
42 mv $out/bin/spacetimedb-cli $out/bin/spacetime
43 '';
44
45 meta = {
46 description = "Full-featured relational database system that lets you run your application logic inside the database";
47 homepage = "https://github.com/clockworklabs/SpacetimeDB";
48 license = lib.licenses.bsl11;
49 mainProgram = "spacetime";
50 maintainers = with lib.maintainers; [ akotro ];
51 };
52})