From e421c3b983d075b498ca2ecd1a7aa9d239834086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 28 May 2024 08:17:15 +0200 Subject: [PATCH] nix: 2.18 -> 2.22 I tested this version on my system without any issues, but on the other hand it has better error handling i.e. for infinite recursion. This version has been now also cooking in the nix-install-action for 2 weeks: https://github.com/cachix/install-nix-action/pull/206 --- pkgs/tools/package-management/nix/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 1eeecab4e7ec..88bb55da9d06 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -174,6 +174,16 @@ in lib.makeExtensible (self: ({ version = "2.22.1"; hash = "sha256-5Q1WkpTWH7fkVfYhHDc5r0A+Vc+K5xB1UhzrLzBCrB8="; self_attribute_name = "nix_2_22"; + patches = [ + (fetchpatch { + url = "https://github.com/NixOS/nix/commit/e5f509ef0b5c364544c904faa0bfda57dba03611.patch"; # fix for nix edit + sha256 = "sha256-E0QBD4h6MkGj5ye6Ba08MFR3drOOQu36t6xLXukm7a0="; + }) + (fetchpatch { + url = "https://github.com/NixOS/nix/commit/bb1a4ea21a6af3c37c7d1c948e36678c96c3f499.patch"; # fix for nix edit + sha256 = "sha256-rgK+wus9qccVIKdhbKiDcvcngLvFk6SjjAnRQ6fAMno="; + }) + ]; }; git = common rec { @@ -207,7 +217,7 @@ in lib.makeExtensible (self: ({ else nix; - stable = addFallbackPathsCheck self.nix_2_18; + stable = addFallbackPathsCheck self.nix_2_22; } // lib.optionalAttrs config.allowAliases ( lib.listToAttrs (map ( minor: