trivial-builders: Fix runCommand examples

This commit is contained in:
Niklas Hambüchen 2019-04-19 06:29:42 +02:00
parent 8c881a1bb5
commit a0fa0cd8cf

View File

@ -18,8 +18,8 @@ rec {
* stdenv with no compiler environment. `runCommandCC`
*
* Examples:
* runCommand "name" {envVariable = true;} ''echo hello''
* runCommandNoCC "name" {envVariable = true;} ''echo hello'' # equivalent to prior
* runCommand "name" {envVariable = true;} ''echo hello > $out''
* runCommandNoCC "name" {envVariable = true;} ''echo hello > $out'' # equivalent to prior
* runCommandCC "name" {} ''gcc -o myfile myfile.c; cp myfile $out'';
*/
runCommand = runCommandNoCC;