diff --git a/MODULE.bazel b/MODULE.bazel index e69de29..93c416e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -0,0 +1,5 @@ +"""$REPO_NAME""" + +module(name = "$REPO_NAME") + +bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/devenv.nix b/devenv.nix index 1d24821..4ec03c4 100644 --- a/devenv.nix +++ b/devenv.nix @@ -17,6 +17,10 @@ echo "Bazel version: $(bazel --version | cut -d ' ' -f 2)" ''; + scripts.update-lock.exec = '' + bazel mod deps --lockfile_mode=update + ''; + scripts.build.exec = '' bazel build //main:$$NAME '';