Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
2b63e46f
Unverified
Commit
2b63e46f
authored
1 year ago
by
Charles Hall
Browse files
Options
Downloads
Patches
Plain Diff
use system rocksdb
This mostly just improves build times.
parent
a0c449e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flake.nix
+10
-0
10 additions, 0 deletions
flake.nix
with
10 additions
and
0 deletions
flake.nix
+
10
−
0
View file @
2b63e46f
...
@@ -36,6 +36,10 @@
...
@@ -36,6 +36,10 @@
sha256
=
"sha256-8len3i8oTwJSOJZMosGGXHBL5BVuGQnWOT2St5YAUFU="
;
sha256
=
"sha256-8len3i8oTwJSOJZMosGGXHBL5BVuGQnWOT2St5YAUFU="
;
};
};
# Point to system RocksDB
ROCKSDB_INCLUDE_DIR
=
"
${
pkgs
.
rocksdb_6_23
}
/include"
;
ROCKSDB_LIB_DIR
=
"
${
pkgs
.
rocksdb_6_23
}
/lib"
;
builder
=
(
pkgs
.
callPackage
naersk
{
builder
=
(
pkgs
.
callPackage
naersk
{
inherit
(
toolchain
)
rustc
cargo
;
inherit
(
toolchain
)
rustc
cargo
;
})
.
buildPackage
;
})
.
buildPackage
;
...
@@ -44,6 +48,9 @@
...
@@ -44,6 +48,9 @@
packages
.
default
=
builder
{
packages
.
default
=
builder
{
src
=
./.
;
src
=
./.
;
# Use system RocksDB
inherit
ROCKSDB_INCLUDE_DIR
ROCKSDB_LIB_DIR
;
nativeBuildInputs
=
(
with
pkgs
.
rustPlatform
;
[
nativeBuildInputs
=
(
with
pkgs
.
rustPlatform
;
[
bindgenHook
bindgenHook
]);
]);
...
@@ -54,6 +61,9 @@
...
@@ -54,6 +61,9 @@
# sources, and it can read this environment variable to do so
# sources, and it can read this environment variable to do so
RUST_SRC_PATH
=
"
${
toolchain
.
rust-src
}
/lib/rustlib/src/rust/library"
;
RUST_SRC_PATH
=
"
${
toolchain
.
rust-src
}
/lib/rustlib/src/rust/library"
;
# Use system RocksDB
inherit
ROCKSDB_INCLUDE_DIR
ROCKSDB_LIB_DIR
;
# Development tools
# Development tools
nativeBuildInputs
=
(
with
pkgs
.
rustPlatform
;
[
nativeBuildInputs
=
(
with
pkgs
.
rustPlatform
;
[
bindgenHook
bindgenHook
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment