begin cerulean's rust cli
This commit is contained in:
parent
2f49295004
commit
0314109bc0
8 changed files with 2105 additions and 0 deletions
49
snow/flake.bak/crates.nix
Normal file
49
snow/flake.bak/crates.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{...}: {
|
||||
perSystem = {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nix-bindings-rust.nixPackage = pkgs.nix;
|
||||
|
||||
# declare projects
|
||||
nci.projects."cerulean-project" = {
|
||||
path = ./.;
|
||||
# export all crates (packages and devshell) in flake outputs
|
||||
# alternatively you can access the outputs and export them yourself
|
||||
export = true;
|
||||
|
||||
depsDrvConfig = {
|
||||
imports = [config.nix-bindings-rust.nciBuildConfig];
|
||||
};
|
||||
};
|
||||
# configure crates
|
||||
nci.crates."cerulean" = rec {
|
||||
# profiles.release = rec {
|
||||
default = true;
|
||||
runTests = true;
|
||||
|
||||
drvConfig =
|
||||
depsDrvConfig
|
||||
// {
|
||||
env.CARGO_TERM_VERBOSE = "true";
|
||||
};
|
||||
|
||||
depsDrvConfig = rec {
|
||||
env.LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${builtins.toString (pkgs.lib.makeLibraryPath mkDerivation.buildInputs)}";
|
||||
|
||||
mkDerivation = {
|
||||
buildInputs = with pkgs; [
|
||||
boehmgc.dev
|
||||
nix.dev
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
};
|
||||
};
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue