Skip to content

Commit

Permalink
Generate a Cargo.lock file for libcrux
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Nov 14, 2024
1 parent d5de4e1 commit 08bbe89
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ nix flake update \
--override-input eurydice "github:aeneasverif/eurydice?ref=$EURYDICE_BRANCH" \
--override-input libcrux "github:cryspen/libcrux?ref=$LIBCRUX_BRANCH" \
--override-input bertie "github:cryspen/bertie?ref=$BERTIE_BRANCH"

# Generate a `Cargo.lock` file for libcrux
LIBCRUX_COMMIT="$(nix shell nixpkgs#jq --command jq -r .nodes.libcrux.locked.rev flake.lock)"
git clone https://github.com/cryspen/libcrux
cd libcrux
git checkout "$LIBCRUX_COMMIT"
nix develop --command cargo generate-lockfile
cd ..
mv libcrux/Cargo.lock libcrux-Cargo.lock
rm -rf libcrux

0 comments on commit 08bbe89

Please sign in to comment.