fix flake

This commit is contained in:
cy 2025-04-26 13:11:54 -04:00
parent 81ce855dae
commit 846c465ea0
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts

View file

@ -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
];
};
}
);