From 9d3bedf8bd04337908828571a5f55bbbd5e6dc8b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 7 May 2026 22:09:29 +0100 Subject: [PATCH] nim.nim.nimTarget: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the chnage the eval fails as: ``` $ nix eval --impure --expr 'with import ./. {}; nim.nim.nimTarget' evaluation warning: nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead. error: … while evaluating the attribute 'nim.nimTarget' at pkgs/by-name/ni/nim-unwrapped-2_2/package.nix:101:5: 100| nimHost = lib.warn "nimHost is deprecated, please use stdenv.hostPlatform.nim.os instead." stdenv.hostPlatform.nim.os; 101| nimTarget = lib.warn "nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead." stdenv.hostPlatform.cpu; | ^ 102| }; … while calling the 'warn' builtin at pkgs/by-name/ni/nim-unwrapped-2_2/package.nix:101:17: 100| nimHost = lib.warn "nimHost is deprecated, please use stdenv.hostPlatform.nim.os instead." stdenv.hostPlatform.nim.os; 101| nimTarget = lib.warn "nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead." stdenv.hostPlatform.cpu; | ^ 102| }; (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: attribute 'cpu' missing at pkgs/by-name/ni/nim-unwrapped-2_2/package.nix:101:101: 100| nimHost = lib.warn "nimHost is deprecated, please use stdenv.hostPlatform.nim.os instead." stdenv.hostPlatform.nim.os; 101| nimTarget = lib.warn "nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead." stdenv.hostPlatform.cpu; | ^ 102| }; ``` --- pkgs/by-name/ni/nim-unwrapped-2_2/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ni/nim-unwrapped-2_2/package.nix b/pkgs/by-name/ni/nim-unwrapped-2_2/package.nix index 00b39f59eb0a..6a3c02fe4485 100644 --- a/pkgs/by-name/ni/nim-unwrapped-2_2/package.nix +++ b/pkgs/by-name/ni/nim-unwrapped-2_2/package.nix @@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: { passthru = { nimHost = lib.warn "nimHost is deprecated, please use stdenv.hostPlatform.nim.os instead." stdenv.hostPlatform.nim.os; - nimTarget = lib.warn "nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead." stdenv.hostPlatform.cpu; + nimTarget = lib.warn "nimTarget is deprecated, please use stdenv.hostPlatform.nim.cpu instead." stdenv.hostPlatform.nim.cpu; }; meta = {