Skip to content

Commit

Permalink
fix(nix): rust overlay infinite recursion (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
eljamm authored Jan 18, 2025
1 parent ebaf2c2 commit e37d8d6
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,12 @@
let
pkgs = import nixpkgs {
inherit system;
overlays = [
rust-overlay.overlays.default
(
final: prev:
let
toolchain = final.rust-bin.stable.latest.default;
in
{
rustPlatform = prev.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
}
)
];
overlays = [ rust-overlay.overlays.default ];
};
toolchain = pkgs.rust-bin.stable.latest.default;
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};

rev = self.shortRev or self.dirtyShortRev or "dirty";
Expand All @@ -46,7 +37,14 @@
in
{
packages = {
yazi-unwrapped = pkgs.callPackage ./nix/yazi-unwrapped.nix { inherit version rev date; };
yazi-unwrapped = pkgs.callPackage ./nix/yazi-unwrapped.nix {
inherit
version
rev
date
rustPlatform
;
};
yazi = pkgs.callPackage ./nix/yazi.nix { inherit (self.packages.${system}) yazi-unwrapped; };
default = self.packages.${system}.yazi;
};
Expand Down

0 comments on commit e37d8d6

Please sign in to comment.