mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
make it easy to configure cargo profiles from nix
This way you can easily build in debug mode with Nix.
This commit is contained in:
parent
51f9650ca7
commit
bbb1a6fea4
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
# Options (keep sorted)
|
# Options (keep sorted)
|
||||||
, default-features ? true
|
, default-features ? true
|
||||||
, features ? []
|
, features ? []
|
||||||
|
, profile ? "release"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -22,6 +23,7 @@ let
|
||||||
{
|
{
|
||||||
GRAPEVINE_VERSION_EXTRA =
|
GRAPEVINE_VERSION_EXTRA =
|
||||||
inputs.self.shortRev or inputs.self.dirtyShortRev;
|
inputs.self.shortRev or inputs.self.dirtyShortRev;
|
||||||
|
CARGO_PROFILE = profile;
|
||||||
ROCKSDB_INCLUDE_DIR = "${rocksdb'}/include";
|
ROCKSDB_INCLUDE_DIR = "${rocksdb'}/include";
|
||||||
ROCKSDB_LIB_DIR = "${rocksdb'}/lib";
|
ROCKSDB_LIB_DIR = "${rocksdb'}/lib";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue