-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hopefully helpful readmes to examples
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
C++ Toolchain Example | ||
===================== | ||
|
||
This is an example C++ project that uses `rules_cc`. It should build and run both with or without Nix installed. | ||
|
||
# Usage | ||
|
||
To run the example with Nix, issue the following command: | ||
``` | ||
nix-shell --command 'bazel run :hello' | ||
``` | ||
|
||
To run the example without Nix, make sure you have Bazel installed, and issue the following command: | ||
``` | ||
bazel run :hello | ||
``` | ||
Note that if this command is run on NixOS, it will still use Nix. :-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Go Toolchain Example | ||
==================== | ||
|
||
This is an example Go project that uses `rules_go`. It should build and run both with or without Nix installed. | ||
|
||
# Usage | ||
|
||
To run the example with Nix, issue the following command: | ||
``` | ||
nix-shell --command 'bazel run :hello' | ||
``` | ||
|
||
To run the example without Nix, make sure you have Bazel installed, and issue the following command: | ||
``` | ||
bazel run :hello | ||
``` | ||
Note that if this command is run on NixOS, it will still use Nix. :-) |