summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2018-12-13 02:05:30 -0500
committerJörg Thalheim <joerg@thalheim.io>2018-12-18 06:09:34 +0100
commitfcce28f1af9e89cbce9d0c32899af25240c1d751 (patch)
treec74a4fee0d45d757d49ef9f777c17f4fe28e9da0 /doc
parent84557733f772f60db1d8a48a5aaeeca9513d56f7 (diff)
downloadnixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar.gz
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar.bz2
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar.lz
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar.xz
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.tar.zst
nixpkgs-fcce28f1af9e89cbce9d0c32899af25240c1d751.zip
docs: Small change to Rust guide to be more cross friendly
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/rust.section.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 4549bbd1686..14b36f55f52 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -303,11 +303,15 @@ with import <nixpkgs> {};
 
 stdenv.mkDerivation {
   name = "rust-env";
-  buildInputs = [
+  nativeBuildInputs = [
     rustc cargo
 
-    # Example Additional Dependencies
-    pkgconfig openssl
+    # Example Build-time Additional Dependencies
+    pkgconfig
+  ];
+  buildInputs = [
+    # Example Run-time Additional Dependencies
+    openssl
   ];
 
   # Set Environment Variables