fix flake
This commit is contained in:
parent
81ce855dae
commit
846c465ea0
1 changed files with 23 additions and 17 deletions
26
flake.nix
26
flake.nix
|
@ -23,9 +23,6 @@
|
|||
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
craneLib = (crane.mkLib pkgs).overrideToolchain(_: toolchain);
|
||||
lib = pkgs.lib;
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
];
|
||||
|
@ -34,23 +31,32 @@
|
|||
openssl
|
||||
nix
|
||||
boost
|
||||
];
|
||||
env = {
|
||||
# for cpp bindings to work
|
||||
NIX_INCLUDE_PATH = "${lib.getDev pkgs.nix}/include";
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
inherit buildInputs;
|
||||
inherit nativeBuildInputs;
|
||||
packages = with pkgs; [
|
||||
tokio-console
|
||||
cargo-udeps
|
||||
];
|
||||
NIX_INCLUDE_PATH = "${lib.getDev pkgs.nix}/include";
|
||||
env = env // {
|
||||
RUST_LOG = "nixcp=debug";
|
||||
RUST_BACKGRACE = 1;
|
||||
};
|
||||
};
|
||||
|
||||
packages.default = craneLib.buildPackage {
|
||||
inherit nativeBuildInputs;
|
||||
inherit buildInputs;
|
||||
inherit env;
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
openssl
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue