From e65cf1d265210738a9b3c0b811fbfeffa0741c39 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Tue, 25 Jun 2024 17:59:39 +0200 Subject: 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`. --- etc/repos.template.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'etc/repos.template.json') diff --git a/etc/repos.template.json b/etc/repos.template.json index bb4d04c..929e149 100644 --- a/etc/repos.template.json +++ b/etc/repos.template.json @@ -1,7 +1,7 @@ { "repositories": { "": { "repository": {"type": "file", "path": "src"} - , "bindings": {"rules": "rules/nix"} + , "bindings": {"rules": "rules/nix", "rust": "rules-rust/nix"} } , "test": { "repository": {"type": "file", "path": "test"} @@ -10,6 +10,11 @@ , "defaults": {"repository": {"type": "file", "path": "etc/defaults"}} , "rules/nix": {"repository": "rules", "target_root": "defaults", "rule_root": "rules"} + , "rules-rust/nix": + { "repository": "rules-rust" + , "target_root": "defaults" + , "rule_root": "rules-rust" + } , "rules/nix-test": { "repository": "rules" , "target_root": "defaults" -- cgit v1.2.3