Skip to content

Commit

Permalink
fix(flake): correct devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovyerus committed Jan 25, 2025
1 parent 9cf3e44 commit abc40b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

mkBandsnatch = pkgs: let
fenixPkgs = fenix.packages.${pkgs.system};
toolchain = fenixPkgs.stable.minimalToolchain;
toolchain = fenixPkgs.stable.defaultToolchain;
naerskLib = pkgs.callPackage naersk {
cargo = toolchain;
rustc = toolchain;
Expand All @@ -37,7 +37,11 @@
packages = defaultForSystems (pkgs: mkBandsnatch pkgs);

devShells = defaultForSystems (
pkgs: pkgs.mkShell {inputsFrom = [(mkBandsnatch pkgs)];}
pkgs:
pkgs.mkShell {
inputsFrom = [(mkBandsnatch pkgs)];
RUST_SRC_PATH = "${fenix.packages.${pkgs.system}.stable.rust-src}/lib/rustlib/src/rust/library";
}
);
};
}

0 comments on commit abc40b4

Please sign in to comment.