overlay: fix bug where prev should have been final

This commit is contained in:
Fabián Heredia Montiel 2024-09-30 18:51:33 -06:00
parent 7dd3d652a3
commit 81d9ff97c9

View file

@ -74,7 +74,7 @@ let
inputs = prev.${name}.buildInputs ++ prev.${name}.nativeBuildInputs;
nixDependency = lib.findFirst
(drv: (drv.pname or "") == "nix")
prev.nixVersions.stable_upstream # default to stable nix if nix is not an input
final.nixVersions.stable_upstream # default to stable nix if nix is not an input
inputs;
nixMajor = lib.versions.major (nixDependency.version or "");
nixMinor = lib.versions.minor (nixDependency.version or "");