nim.nim.nimTarget: fix the eval
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| };
```
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user