summaryrefslogtreecommitdiff
path: root/etc/generate-repos.sh
diff options
context:
space:
mode:
authorKlaus T. Aehlig <aehlig@linta.de>2024-06-25 17:59:39 +0200
committerKlaus T. Aehlig <aehlig@linta.de>2024-06-25 18:29:41 +0200
commite65cf1d265210738a9b3c0b811fbfeffa0741c39 (patch)
tree3b1bfe9958b324b5bd0768b48bfa76aaaa3eecc7 /etc/generate-repos.sh
parent628cb0ab06332086a7ea022bcebfb69d95c38068 (diff)
downloadhello-nix-e65cf1d265210738a9b3c0b811fbfeffa0741c39.tar.gz
Import rust rules and add a minimal example
Note that the PATH for rust targets also has to include that for the C compiler and hence also coreutils, as the rust compiler calls out to `cc`.
Diffstat (limited to 'etc/generate-repos.sh')
-rwxr-xr-xetc/generate-repos.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/generate-repos.sh b/etc/generate-repos.sh
index f7b4cf8..8bd1ca6 100755
--- a/etc/generate-repos.sh
+++ b/etc/generate-repos.sh
@@ -5,7 +5,11 @@ readonly ROOT=$(readlink -f $(dirname $0)/..)
: ${RULES_CC_REPO:=https://github.com/just-buildsystem/rules-cc}
: ${RULES_CC_BRANCH:=master}
+: ${RULES_RUST_REPO:=https://github.com/just-buildsystem/rules-rust}
+: ${RULES_RUST_BRANCH:=master}
just-import-git -C ${ROOT}/etc/repos.template.json \
--as rules -b ${RULES_CC_BRANCH} ${RULES_CC_REPO} rules \
+ | just-import-git -C - \
+ --as rules-rust -b ${RULES_RUST_BRANCH} ${RULES_RUST_REPO} rules-rust \
| hdump > ${ROOT}/etc/repos.json