Skip to content

Commit 09e3bd3

Browse files
committed
build(pkgs): Upgrade Nix to nixVersion.stable (>= 2.24.10)
1 parent 1be5c8b commit 09e3bd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/default.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
pkgs,
55
...
66
}: let
7-
inherit (lib) optionalAttrs;
7+
inherit (lib) optionalAttrs versionAtLeast;
88
inherit (pkgs) system;
99
inherit (pkgs.hostPlatform) isLinux;
1010
in rec {
1111
legacyPackages = {
1212
inputs = {
1313
nixpkgs = rec {
1414
inherit (pkgs) cachix;
15-
nix = pkgs.nixVersions.nix_2_22;
15+
nix = let
16+
nixStable = pkgs.nixVersions.stable;
17+
in
18+
assert versionAtLeast nixStable.version "2.24.10"; nixStable;
1619
nix-eval-jobs = pkgs.nix-eval-jobs.override {inherit nix;};
1720
nix-fast-build = pkgs.nix-fast-build.override {inherit nix-eval-jobs;};
1821
};

0 commit comments

Comments
 (0)