From e400dca9bc4c2aac99f1404f2790a66ace87f8a7 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Mon, 2 Mar 2026 19:23:28 +0100 Subject: [PATCH] Add bundler required extraDirs. --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 517d64d..06da1f4 100644 --- a/flake.nix +++ b/flake.nix @@ -80,6 +80,13 @@ "-DLOGOS_BLOCKCHAIN_INCLUDE=${logosBlockchainC}/include" ]; + # Logos Core Edge-case + # The current version of the (bundler)[https://github.com/logos-co/nix-bundle-dir] does not support + # directories other than `lib/` and `bin/` for bundling. + # Since the circuits' binaries are placed in `share/circuits/`, we need to add a special case so the bundler + # can find them and include them in the final bundle. + extraDirs = [ "share" ]; + postInstall = '' mkdir $out/share cp -r ${logosBlockchainC}/circuits $out/share