From b8940394a082c429ce4346d44678722a7405c516 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 13 Sep 2024 18:49:21 +0200 Subject: [PATCH] fix(zksync_tee_prover): strip binary for nix package (#2876) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ Strip `zksync_tee_prover` binary for nix package. ## Why ❔ Somehow llvm decided to produce different symbol names each build ```diff - 12916: 000000000194d628 48 OBJECT LOCAL HIDDEN 23 anon.c880a573512c356e53163839ee7cd669.742.llvm.17979232152659092167 + 12916: 000000000194d628 48 OBJECT LOCAL HIDDEN 23 anon.c880a573512c356e53163839ee7cd669.742.llvm.14235143304249741099 [...] ``` Remove those to make the builds reproducible again. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. Signed-off-by: Harald Hoyer --- etc/nix/tee_prover.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/nix/tee_prover.nix b/etc/nix/tee_prover.nix index 50273b91fb5..0b424522dff 100644 --- a/etc/nix/tee_prover.nix +++ b/etc/nix/tee_prover.nix @@ -7,4 +7,8 @@ craneLib.buildPackage (commonArgs // { version = (builtins.fromTOML (builtins.readFile ../../core/bin/zksync_tee_prover/Cargo.toml)).package.version; cargoExtraArgs = "-p zksync_tee_prover --bin zksync_tee_prover"; inherit cargoArtifacts; + + postInstall = '' + strip $out/bin/zksync_tee_prover + ''; })