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
d796fe7cd3
commit
55259329a3
1 changed files with 3 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
|
||||||
|
@ -73,6 +74,8 @@ craneLib.buildPackage rec {
|
||||||
pkgsBuildHost.rustPlatform.bindgenHook
|
pkgsBuildHost.rustPlatform.bindgenHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
CARGO_PROFILE = profile;
|
||||||
|
|
||||||
inherit env;
|
inherit env;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue