checks: use pkgs.nixVersions.latest until pkgs.nix is 2.26+

This commit is contained in:
Michael Hoang
2025-03-20 15:48:01 +09:00
parent 60d56c4e3b
commit 850627c5c6
3 changed files with 24 additions and 8 deletions

View File

@@ -166,8 +166,14 @@ pythonRuntime.pkgs.buildPythonApplication {
buildInputs = [
pkgs.bash
pkgs.coreutils
# Use newer nix versions to get more insights on profile creation race condition
nixVersions.nix_2_26
# looks like Nix 2.26 fixes the profile creation race condition we were running into on Nix 2.24
# Switch this back to `pkgs.nix` when `pkgs.nix` is Nix 2.26+
(
assert
lib.versionOlder pkgs.nix.version "2.26"
&& lib.versionAtLeast pkgs.nixVersions.latest.version "2.26";
pkgs.nixVersions.latest
)
];
closureInfo = pkgs.closureInfo {
rootPaths = [