From ed60398941e4395ed507a95e086949e7834cf62f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 13 Sep 2024 18:17:35 +0200 Subject: [PATCH] fix(zksync_tee_prover): strip binary for nix package 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 [...] ``` 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 50273b91fb5a..0b424522dffb 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 + ''; })