From e0da1020fd259aabcabdf1c0f1dc904190127119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 25 Apr 2026 12:34:57 +0200 Subject: [PATCH] nickel: switch optional nix-experimental input to nix_2_31 The nix-experimental feature compiles against the Nix 2.31 headers, but libnixmain now tries to create /nix/var/nix/profiles during initialisation, which the build sandbox rejects. Skip the affected integration test when enableNixImport is set. The default build (enableNixImport = false) is bit-identical. --- pkgs/by-name/ni/nickel/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ni/nickel/package.nix b/pkgs/by-name/ni/nickel/package.nix index becfec74d3fd..e0f52def68a3 100644 --- a/pkgs/by-name/ni/nickel/package.nix +++ b/pkgs/by-name/ni/nickel/package.nix @@ -41,7 +41,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = lib.optionals enableNixImport [ - nixVersions.nix_2_28 + nixVersions.nix_2_31 boost ]; @@ -70,6 +70,12 @@ rustPlatform.buildRustPackage (finalAttrs: { "--exclude=py-nickel" ]; + checkFlags = lib.optionals enableNixImport [ + # libnixmain from Nix >= 2.31 tries to create /nix/var/nix/profiles on + # initialisation, which is rejected by the build sandbox. + "--skip=stdin_format::evaluates_nix_from_stdin" + ]; + postInstall = '' mkdir -p $nls/bin mv $out/bin/nls $nls/bin/nls