summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-09-30 09:49:32 +0200
committerRobert Hensing <robert@roberthensing.nl>2024-09-30 12:13:35 +0200
commit4fd048a763a7fd02f20f0c59918e24fab3e19215 (patch)
tree02caa0522964bed33f344dea016f36fc39ea191f
parentdoc/as-a-function: Edit (diff)
downloadnixpkgs-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.md2
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.