mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-14 05:26:28 +03:00
parent
fa3b1fd9bd
commit
abd8e1bf54
1 changed files with 11 additions and 1 deletions
12
flake.nix
12
flake.nix
|
@ -43,6 +43,10 @@
|
||||||
sha256 = "sha256-gdYqng0y9iHYzYPAdkC/ka3DRny3La/S5G8ASj0Ayyc=";
|
sha256 = "sha256-gdYqng0y9iHYzYPAdkC/ka3DRny3La/S5G8ASj0Ayyc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The system's RocksDB
|
||||||
|
ROCKSDB_INCLUDE_DIR = "${pkgs.rocksdb}/include";
|
||||||
|
ROCKSDB_LIB_DIR = "${pkgs.rocksdb}/lib";
|
||||||
|
|
||||||
# Shared between the package and the devShell
|
# Shared between the package and the devShell
|
||||||
nativeBuildInputs = (with pkgs.rustPlatform; [
|
nativeBuildInputs = (with pkgs.rustPlatform; [
|
||||||
bindgenHook
|
bindgenHook
|
||||||
|
@ -57,7 +61,9 @@
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
stdenv
|
stdenv
|
||||||
nativeBuildInputs;
|
nativeBuildInputs
|
||||||
|
ROCKSDB_INCLUDE_DIR
|
||||||
|
ROCKSDB_LIB_DIR;
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = (pkgs.mkShell.override { inherit stdenv; }) {
|
devShells.default = (pkgs.mkShell.override { inherit stdenv; }) {
|
||||||
|
@ -65,6 +71,10 @@
|
||||||
# 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";
|
||||||
|
|
||||||
|
inherit
|
||||||
|
ROCKSDB_INCLUDE_DIR
|
||||||
|
ROCKSDB_LIB_DIR;
|
||||||
|
|
||||||
# Development tools
|
# Development tools
|
||||||
nativeBuildInputs = nativeBuildInputs ++ (with toolchain; [
|
nativeBuildInputs = nativeBuildInputs ++ (with toolchain; [
|
||||||
cargo
|
cargo
|
||||||
|
|
Loading…
Reference in a new issue