diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-26 15:46:09 +0200 |
---|---|---|
committer | Klaus T. Aehlig <aehlig@linta.de> | 2024-06-27 12:05:35 +0200 |
commit | c6b35f8f2e83621b4e53ab999e5b5bf146a73aa0 (patch) | |
tree | 2c607815866fdb7887dc5486255d2a7729f23578 /etc/generate-repos.sh | |
parent | d5e14989a76f346789622fce27e3c63c217792cb (diff) | |
download | hello-nix-c6b35f8f2e83621b4e53ab999e5b5bf146a73aa0.tar.gz |
Add minimal example using cargo
... including a test (for which we add python3 as test dependency).
Diffstat (limited to 'etc/generate-repos.sh')
-rwxr-xr-x | etc/generate-repos.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/generate-repos.sh b/etc/generate-repos.sh index 39f4d4e..d8cd187 100755 --- a/etc/generate-repos.sh +++ b/etc/generate-repos.sh @@ -8,9 +8,15 @@ readonly ROOT=$(readlink -f $(dirname $0)/..) : ${RULES_RUST_REPO:=https://github.com/just-buildsystem/rules-rust} : ${RULES_RUST_BRANCH:=master} +# remove files generated by just-import-cargo +rm -rf etc/deps-rust etc/defaults/rust/TARGETS # common to all cargo imports +rm -f src/rust/cargo/circle/Cargo.lock src/rust/cargo/circle/TARGETS + 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 \ + | just-import-cargo --rules rules-rust/nix --repo-root ${ROOT} -rst \ + src/rust/cargo/circle \ | just-deduplicate-repos \ | hdump > ${ROOT}/etc/repos.json |