mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 11:39:20 +00:00
fix: correct toolchain in flake
This commit is contained in:
parent
68369a7e4b
commit
32b7aa65e6
1 changed files with 9 additions and 3 deletions
12
flake.nix
12
flake.nix
|
|
@ -20,11 +20,17 @@
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
overlays = [(import rust-overlay)];
|
overlays = [(import rust-overlay)];
|
||||||
pkgs = import nixpkgs {inherit system overlays;};
|
pkgs = import nixpkgs {inherit system overlays;};
|
||||||
rustToolchain = pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
|
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
|
rustToolchainNightly = pkgs.pkgsBuildHost.rust-bin.nightly.latest.default;
|
||||||
tools = with pkgs; [cargo-nextest];
|
tools = with pkgs; [cargo-nextest];
|
||||||
nativeBuildInputs = with pkgs; [rustToolchain pkg-config] ++ tools;
|
nativeBuildInputs = with pkgs; [rustToolchain rustToolchainNightly pkg-config] ++ tools;
|
||||||
in
|
in
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
devShells.default = mkShell {inherit nativeBuildInputs;};
|
devShells.default = mkShell {
|
||||||
|
inherit nativeBuildInputs;
|
||||||
|
shellHook = ''
|
||||||
|
export CARGO_NIGHTLY="${rustToolchainNightly}/bin/cargo"
|
||||||
|
'';
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue