name: currentSystem type: string constructorArgs: [evalSettings.getCurrentSystem()] impure: true
The value of the
eval-system
or else
system
configuration option.
It can be used to set the system attribute for builtins.derivation such that the resulting derivation can be built on the same system that evaluates the Nix expression:
builtins.derivation {
# ...
system = builtins.currentSystem;
}
It can be overridden in order to create derivations for different system than the current one:
$ nix-instantiate --system "mips64-linux" --eval --expr 'builtins.currentSystem'
"mips64-linux"