From 34eea7176a04a6921333ee318754971ec1e8a091 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 27 Feb 2026 22:28:20 +0000 Subject: [PATCH] dart-source: don't clobber `passthru` elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change `passthru` override deleted `fetchGitHashesScript` entry and caused updater scripts to fail: ``` $ nix-instantiate -A butterfly.updateScript error: … while evaluating the attribute 'command' at pkgs/common-updater/combinators.nix:190:7: 189| { 190| command = commandsToShellInvocation (map ({ command, ... }: command) scripts); | ^ 191| supportedFeatures = … while evaluating the attribute 'paths' at pkgs/common-updater/combinators.nix:91:7: 90| commands = commands ++ [ new.args ]; 91| paths = paths ++ new.paths; | ^ 92| maxArgIndex = new.maxArgIndex; (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: attribute 'fetchGitHashesScript' missing at pkgs/by-name/bu/butterfly/package.nix:64:11: 63| command = [ 64| dart.fetchGitHashesScript | ^ 65| "--input" ``` Let's use attribute merge instead. --- pkgs/development/compilers/dart/source/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/dart/source/default.nix b/pkgs/development/compilers/dart/source/default.nix index 446229e0c523..8afe8b6a2962 100644 --- a/pkgs/development/compilers/dart/source/default.nix +++ b/pkgs/development/compilers/dart/source/default.nix @@ -247,9 +247,11 @@ dart-bin.overrideAttrs (oldAttrs: { runHook postInstall ''; - passthru.updateScript = writeShellScript "update-dart" '' - ${lib.getExe nix-update} --version=$(${lib.getExe curlMinimal} --fail --location --silent https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION | ${lib.getExe jq} --raw-output .version) - ''; + passthru = oldAttrs.passthru // { + updateScript = writeShellScript "update-dart" '' + ${lib.getExe nix-update} --version=$(${lib.getExe curlMinimal} --fail --location --silent https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION | ${lib.getExe jq} --raw-output .version) + ''; + }; meta = oldAttrs.meta // { platforms = [