From 81a5c519413125001258fe0e25bbd5c458647f65 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 9 Feb 2022 23:10:41 +0100 Subject: sandbox: Use Nix 2.3 for now The way store paths are queried has changed significantly in Nix 2.4, so we need to completely refactor nix-query.cc. However, I currently have a lot of other things to do and the store protocol is compatible so let's pin Nix to version 2.3 for the sandbox implementation for now. Signed-off-by: aszlig --- pkgs/build-support/build-sandbox/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support/build-sandbox') diff --git a/pkgs/build-support/build-sandbox/default.nix b/pkgs/build-support/build-sandbox/default.nix index 3b42f4f3..09c1b3de 100644 --- a/pkgs/build-support/build-sandbox/default.nix +++ b/pkgs/build-support/build-sandbox/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, pkg-config, closureInfo, nix, boost, dash }: +{ stdenv, lib, pkg-config, closureInfo, nix_2_3, boost, dash }: drv: { paths ? {}, ... }@attrs: @@ -98,7 +98,8 @@ in stdenv.mkDerivation ({ ''; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ boost nix ]; + # FIXME: Use current Nix after fixing API compatibility. + buildInputs = [ boost nix_2_3 ]; makeFlags = [ "BINDIR=${drv}/bin" "EXTRA_NS_FLAGS=${extraNamespaceFlags}" ] ++ lib.optional allowBinSh "BINSH_EXECUTABLE=${dash}/bin/dash" ++ lib.optional fullNixStore "FULL_NIX_STORE=1"; -- cgit 1.4.1