fix: make nix-shell use the nightly Rust toolchain (#3267)

This commit is contained in:
Carlos Eduardo 2025-10-26 01:38:19 -03:00 committed by GitHub
parent 157156b5b8
commit 641bc6ff47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View file

@ -45,7 +45,9 @@
rustPlatform
;
};
yazi = pkgs.callPackage ./nix/yazi.nix { inherit (self.packages.${system}) yazi-unwrapped; };
yazi = pkgs.callPackage ./nix/yazi.nix {
inherit (self.packages.${system}) yazi-unwrapped;
};
default = self.packages.${system}.yazi;
};
@ -59,7 +61,9 @@
// {
overlays = {
default = self.overlays.yazi;
yazi = _: prev: { inherit (self.packages.${prev.stdenv.system}) yazi yazi-unwrapped; };
yazi = _: prev: {
inherit (self.packages.${prev.stdenv.system}) yazi yazi-unwrapped;
};
};
};
}

View file

@ -8,7 +8,7 @@ let
in
mainPkg.overrideAttrs (oa: {
nativeBuildInputs = [
(rust-bin.stable.latest.default.override {
(rust-bin.nightly.latest.default.override {
extensions = [
"rust-src"
"rustfmt"
@ -18,7 +18,8 @@ mainPkg.overrideAttrs (oa: {
})
nodePackages.cspell
] ++ (oa.nativeBuildInputs or [ ]);
]
++ (oa.nativeBuildInputs or [ ]);
env.RUST_BACKTRACE = "1";
})