diff options
author | Nadrieril | 2024-05-03 11:32:44 +0200 |
---|---|---|
committer | Nadrieril | 2024-05-14 15:01:39 +0200 |
commit | f2fa29e5ef5c8c7d7375e4c8a37dbba1012fb95c (patch) | |
tree | 78bab9b0c1abb65ade8751a8cb39cd96bb55bed5 /Makefile | |
parent | 44b31973eb5a8c27e5620081669488e3b5899638 (diff) |
`./charon-pin` stores the current charon commit
It is kept up-to-date in CI
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -77,6 +77,17 @@ build-bin-dir: build-bin build-lib doc: cd compiler && dune build @doc +# Fetches the latest commit from charon and updates `flake.lock` accordingly. +.PHONY: update-charon-pin +update-charon-pin: + nix flake lock --update-input charon + $(MAKE) charon-pin + +# Keep the commit revision in `./charon-pin` as well so that non-nix users can +# know which commit to use. +./charon-pin: flake.lock + nix-shell -p jq --run './scripts/update-charon-pin.sh' >> ./charon-pin + .PHONY: clean clean: clean-generated cd compiler && dune clean |