From c1d240ffcb119c201ef1f59d4cd6e5136071a308 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Wed, 26 Jan 2022 10:58:59 -0800 Subject: [PATCH] nixVersions: keep attrset chronologically sorted --- pkgs/tools/package-management/nix/default.nix | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 3d9f393e76db..38bf1933f856 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -44,18 +44,13 @@ let inherit storeDir stateDir confDir; }; in rec { - stable = nix_2_6; - - nix_2_6 = buildNix { - version = "2.6.0"; - sha256 = "sha256-xEPeMcNJVOeZtoN+d+aRwolpW8mFSEQx76HTRdlhPhg="; - }; - - nix_2_5 = buildNix { - version = "2.5.1"; - sha256 = "sha256-GOsiqy9EaTwDn2PLZ4eFj1VkXcBUbqrqHehRE9GuGdU="; - # https://github.com/NixOS/nix/pull/5536 - patches = [ ./patches/install-nlohmann_json-headers.patch ]; + nix_2_3 = buildNix rec { + version = "2.3.16"; + src = fetchurl { + url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz"; + sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw="; + }; + boehmgc = boehmgc_nix_2_3; }; nix_2_4 = buildNix { @@ -65,15 +60,21 @@ in rec { patches = [ ./patches/install-nlohmann_json-headers.patch ]; }; - nix_2_3 = buildNix rec { - version = "2.3.16"; - src = fetchurl { - url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz"; - sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw="; - }; - boehmgc = boehmgc_nix_2_3; + nix_2_5 = buildNix { + version = "2.5.1"; + sha256 = "sha256-GOsiqy9EaTwDn2PLZ4eFj1VkXcBUbqrqHehRE9GuGdU="; + # https://github.com/NixOS/nix/pull/5536 + patches = [ ./patches/install-nlohmann_json-headers.patch ]; }; + nix_2_6 = buildNix { + version = "2.6.0"; + sha256 = "sha256-xEPeMcNJVOeZtoN+d+aRwolpW8mFSEQx76HTRdlhPhg="; + }; + + # FIXME: nix_2_6 is broken on aarch64-darwin for now. + stable = nix_2_5; + unstable = lib.lowPrio (buildNix rec { version = "2.7"; suffix = "pre20220124_${lib.substring 0 7 src.rev}";