Add bundler required extraDirs.

This commit is contained in:
Alejandro Cabeza Romero 2026-03-02 19:23:28 +01:00
parent 27258e2a75
commit e400dca9bc
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -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