From 2369b7fc4fc6bab6c85a3f2feb36d68d63926406 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Mon, 7 Jul 2025 16:48:10 +0100 Subject: [PATCH] ci/version-info: correctly set NIX_PATH instead of flake registries Flake registries and include paths are not the same thing. `` looks for nixpkgs on the include path, set by `NIX_PATH` and `--include`. However `--inputs-from` adds inputs to the flake registry, not the include path. --- ci/version-info/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/version-info/default.nix b/ci/version-info/default.nix index 94fdd92c..e11c0e4c 100644 --- a/ci/version-info/default.nix +++ b/ci/version-info/default.nix @@ -1,5 +1,6 @@ { lib, + path, callPackage, writeShellApplication, stdenv, @@ -15,6 +16,7 @@ writeShellApplication { NIX_CONFIG = '' experimental-features = nix-command flakes pipe-operators ''; + NIX_PATH = "nixpkgs=${toString path}"; }; text = '' @@ -23,7 +25,6 @@ writeShellApplication { # Use channels.nix to build channels.toml nix build --impure \ - --inputs-from ${toString ../..} \ --file ${./supported-versions.nix} \ --argstr system ${stdenv.hostPlatform.system} \ --arg-from-file channelsJSON channels.json \