-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is bazelisk with auto completion stolen from bazel package.
- Loading branch information
Showing
4 changed files
with
24 additions
and
3 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
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
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,20 @@ | ||
{ | ||
runCommand, | ||
bazelisk, | ||
bazel_6, | ||
... | ||
}: | ||
# OpenTitan requires a specific version of Bazel. | ||
# We *could* package our own Bazel, but it can't be a simple override since Bazel build process | ||
# require a lot of Internet dependencies. | ||
# | ||
# For simplicity we'll just let bazelisk do the heavyloading. | ||
# | ||
# This package basically just creates an alias from bazel to bazelisk and adds the auto completion | ||
# which is absent in bazelisk. | ||
runCommand "bazel" {} '' | ||
cp -r ${bazelisk} $out | ||
chmod -R +w $out | ||
ln -s $out/bin/bazelisk $out/bin/bazel | ||
cp -r ${bazel_6}/share $out/share | ||
'' |
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