From 21e21bf5c38cd2a07d0c1b0fa481925715f3cf1b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 7 Jun 2025 16:09:21 +0100 Subject: [PATCH] minimal-bootstrap: fix the eval (rewriteURL fallout) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails as: $ nix-instantiate -A minimal-bootstrap.bash --argstr system i686-linux error: … while calling the 'derivationStrict' builtin at :37:12: 36| 37| strict = derivationStrict drvAttrs; | ^ 38| … while evaluating derivation 'bash-5.2.15' whose name attribute is located at pkgs/os-specific/linux/minimal-bootstrap/bash/2.nix:85:19 … while evaluating attribute 'PATH' of derivation 'bash-5.2.15' at pkgs/os-specific/linux/minimal-bootstrap/bash/2.nix:108:11: 107| SHELL = "${bash_2_05}/bin/bash"; 108| PATH = lib.makeBinPath ( | ^ 109| (env.nativeBuildInputs or [ ]) (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: function 'anonymous lambda' called without required argument 'rewriteURL' at /tmp/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1: 4| 5| { | ^ 6| rewriteURL, --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b20f87db9d050..78cb8d022fdbc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11270,6 +11270,7 @@ with pkgs; inherit lib config; fetchurl = import ../build-support/fetchurl/boot.nix { inherit (stdenv.buildPlatform) system; + inherit (config) rewriteURL; }; checkMeta = callPackage ../stdenv/generic/check-meta.nix { inherit (stdenv) hostPlatform; }; }