feat(third_party/bazel): Check in rules_haskell from Tweag
This commit is contained in:
parent
2eb1dc26e4
commit
f723b8b878
479 changed files with 51484 additions and 0 deletions
30
third_party/bazel/rules_haskell/tests/run-start-script.sh
vendored
Executable file
30
third_party/bazel/rules_haskell/tests/run-start-script.sh
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run the start script in its own workspace
|
||||
# and build the example binary target.
|
||||
|
||||
set -e
|
||||
|
||||
pwd=$(pwd)
|
||||
cd $(mktemp -d)
|
||||
$pwd/start
|
||||
|
||||
# Copy the bazel configuration, this is only useful for CI
|
||||
mkdir tools
|
||||
cp $pwd/.bazelrc .bazelrc
|
||||
|
||||
# Set Nixpkgs in environment variable to avoid hardcoding it in
|
||||
# start script itself.
|
||||
|
||||
# overrides the used rules_haskell, because
|
||||
# when we're testing the start on a feature branch (CI),
|
||||
# the latest rules_haskell version doesn't always work.
|
||||
# If on the branch we update Bazel to a version with breaking
|
||||
# changes, then we need to adapt to those changes in the branch.
|
||||
# Which in turn means the start script should pull in those changes too.
|
||||
|
||||
NIX_PATH=nixpkgs=$pwd/nixpkgs/default.nix \
|
||||
bazel build \
|
||||
--config=ci \
|
||||
--override_repository=io_tweag_rules_haskell=$pwd \
|
||||
//:example
|
||||
Loading…
Add table
Add a link
Reference in a new issue