diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2024-09-30 09:49:32 +0200 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2024-09-30 12:13:35 +0200 |
| commit | 4fd048a763a7fd02f20f0c59918e24fab3e19215 (patch) | |
| tree | 02caa0522964bed33f344dea016f36fc39ea191f | |
| parent | doc/as-a-function: Edit (diff) | |
| download | nixpkgs-origin/add-nixpkgs-function-platform-arguments-and-docs.tar.gz | |
doc/as-a-function: Command line us of system and crossSystem are okorigin/add-nixpkgs-function-platform-arguments-and-docs
| -rw-r--r-- | doc/using/as-a-function.chapter.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/using/as-a-function.chapter.md b/doc/using/as-a-function.chapter.md index 97a709edd761..c02693f31122 100644 --- a/doc/using/as-a-function.chapter.md +++ b/doc/using/as-a-function.chapter.md @@ -95,6 +95,8 @@ in pkgs.hello ### Legacy arguments `system`, `localSystem` and `crossSystem` {#sec-nixpkgs-arguments-systems-legacy} +`crossSystem` and `system` (or `localSystem`) are ok to use on the command line, but are not recommended for pure Nix code (such as Nix flakes), or Nix code that manages the invocation of the Nixpkgs function. + These parameters existed before [`hostPlatform` and `buildPlatform`](#sec-nixpkgs-arguments-platforms) were introduced. They are still supported, but are not recommended for new code. |
