Skip to content

Commit 641bc6f

Browse files
authored
fix: make nix-shell use the nightly Rust toolchain (#3267)
1 parent 157156b commit 641bc6f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

flake.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
rustPlatform
4646
;
4747
};
48-
yazi = pkgs.callPackage ./nix/yazi.nix { inherit (self.packages.${system}) yazi-unwrapped; };
48+
yazi = pkgs.callPackage ./nix/yazi.nix {
49+
inherit (self.packages.${system}) yazi-unwrapped;
50+
};
4951
default = self.packages.${system}.yazi;
5052
};
5153

@@ -59,7 +61,9 @@
5961
// {
6062
overlays = {
6163
default = self.overlays.yazi;
62-
yazi = _: prev: { inherit (self.packages.${prev.stdenv.system}) yazi yazi-unwrapped; };
64+
yazi = _: prev: {
65+
inherit (self.packages.${prev.stdenv.system}) yazi yazi-unwrapped;
66+
};
6367
};
6468
};
6569
}

nix/shell.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let
88
in
99
mainPkg.overrideAttrs (oa: {
1010
nativeBuildInputs = [
11-
(rust-bin.stable.latest.default.override {
11+
(rust-bin.nightly.latest.default.override {
1212
extensions = [
1313
"rust-src"
1414
"rustfmt"
@@ -18,7 +18,8 @@ mainPkg.overrideAttrs (oa: {
1818
})
1919

2020
nodePackages.cspell
21-
] ++ (oa.nativeBuildInputs or [ ]);
21+
]
22+
++ (oa.nativeBuildInputs or [ ]);
2223

2324
env.RUST_BACKTRACE = "1";
2425
})

0 commit comments

Comments
 (0)