From e5cf719c9e5aabbbd5edf4c74a0368a2a7d5e328 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Sat, 8 Sep 2018 22:31:50 +0000 Subject: [PATCH] nix: apply NixOS/nix#2409 --- pkgs/tools/package-management/nix/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 7590a37a8e362..c2f722bb5dde5 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -3,6 +3,7 @@ , stateDir ? "/nix/var" , confDir ? "/etc" , boehmgc +, fetchpatch }: let @@ -166,7 +167,7 @@ in rec { inherit storeDir stateDir confDir boehmgc; }; - nixStable = callPackage common rec { + nixStable = (callPackage common rec { name = "nix-2.2.2"; src = fetchurl { url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; @@ -174,7 +175,15 @@ in rec { }; inherit storeDir stateDir confDir boehmgc; - }; + }).overrideAttrs (super: { + patches = [ + # fetchGit rev = "*" + (fetchpatch { + url = "https://github.com/NixOS/nix/commit/4b279a099f19bd13a98fa2ae519c4aa263bb6b6e.patch"; + sha256 = "0sisavs3x2p37hrmhnhvhh2rzb0qyjvvd4y0azk25329wylqnw88"; + }) + ]; + }); nixUnstable = lib.lowPrio (callPackage common rec { name = "nix-2.3${suffix}";