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:
Charles Hall 2024-05-01 12:08:42 -07:00
parent 51f9650ca7
commit bbb1a6fea4
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -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";
}