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)
|
||||
, default-features ? true
|
||||
, features ? []
|
||||
, profile ? "release"
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -22,6 +23,7 @@ let
|
|||
{
|
||||
GRAPEVINE_VERSION_EXTRA =
|
||||
inputs.self.shortRev or inputs.self.dirtyShortRev;
|
||||
CARGO_PROFILE = profile;
|
||||
ROCKSDB_INCLUDE_DIR = "${rocksdb'}/include";
|
||||
ROCKSDB_LIB_DIR = "${rocksdb'}/lib";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue