From dbf6ec6979901dff36167351c5c3f4e2d6769067 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 13 Oct 2021 18:09:17 +0300 Subject: [PATCH] Patch nix to fix store path not allowed to have references stuff --- profiles/nix/nix.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/profiles/nix/nix.patch b/profiles/nix/nix.patch index 0702778..506fcfb 100644 --- a/profiles/nix/nix.patch +++ b/profiles/nix/nix.patch @@ -40,3 +40,20 @@ index e04954d45..5649bd01a 100644 globals.dryRun = false; globals.preserveInstalled = false; globals.removeAll = false; +diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc +index f27331534..386a664d9 100644 +--- a/src/libexpr/primops.cc ++++ b/src/libexpr/primops.cc +@@ -1862,9 +1862,9 @@ static void addPath( + if (state.store->isInStore(path)) { + auto [storePath, subPath] = state.store->toStorePath(path); + auto info = state.store->queryPathInfo(storePath); +- if (!info->references.empty()) +- throw EvalError("store path '%s' is not allowed to have references", +- state.store->printStorePath(storePath)); ++ // if (!info->references.empty()) ++ // throw EvalError("store path '%s' is not allowed to have references", ++ // state.store->printStorePath(storePath)); + path = state.store->toRealPath(storePath) + subPath; + } +