3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #59866 from nh2/runCommand-comments

trivial-builders: Fix runCommand examples
This commit is contained in:
Maximilian Bosch 2019-04-19 08:26:43 +02:00 committed by GitHub
commit 9eb1bd0e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;