From bc77c7a9730833c7668c92288c6af950e7270cb5 Mon Sep 17 00:00:00 2001 From: Janne Heß Date: Wed, 27 Mar 2024 17:33:27 +0100 Subject: treewide: Mark Nix blocks in markdown as Nix This should help us with highlighting and future formatting. --- doc/languages-frameworks/rust.section.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/languages-frameworks/rust.section.md') diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 274ee9ce9cc4a..f978ac967d881 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -458,7 +458,7 @@ function does not require a hash (unless git dependencies are used) and fetches every dependency as a separate fixed-output derivation. `importCargoLock` can be used as follows: -``` +```nix cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; @@ -468,7 +468,7 @@ If the `Cargo.lock` file includes git dependencies, then their output hashes need to be specified since they are not available through the lock file. For example: -``` +```nix cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; outputHashes = { -- cgit 1.4.1