nixsearch

nixpkgs.buildPlatform

darwin/option · master · 4cff07de

Description

Specifies the platform on which nix-darwin should be built. By default, nix-darwin is built on the system where it runs, but you can change where it's built. Setting this option will cause nix-darwin to be cross-compiled.

For instance, if you're doing distributed multi-platform deployment, or if you're building machines, you can set this to match your development system and/or build farm.

Ignored when nixpkgs.pkgs is set.

Type

string or (attribute set)

Default

config.nixpkgs.hostPlatform

Example

{
system = "x86_64-darwin";
}

Declared