Merge pull request #7 from logos-blockchain/fix/circuits

fix: update nix path to add circuits
This commit is contained in:
Khushboo-dev-cpp 2026-02-24 17:58:24 +05:30 committed by GitHub
commit 0baedaae98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -173,6 +173,11 @@ pkgs.stdenv.mkDerivation rec {
cp -L "${logosBlockchainModule}/lib/liblogos_blockchain.$OS_EXT" "$out/modules/"
fi
# Copy circuits from blockchain module to lib (needed at runtime)
if [ -d "${logosBlockchainModule}/lib/circuits" ]; then
cp -r "${logosBlockchainModule}/lib/circuits" "$out/modules/"
fi
# Copy blockchain_ui Qt plugin to root directory (not modules, as it's loaded differently)
if [ -f "${logosBlockchainUI}/lib/blockchain_ui.$OS_EXT" ]; then
cp -L "${logosBlockchainUI}/lib/blockchain_ui.$OS_EXT" "$out/"

View File

@ -41,6 +41,11 @@ pkgs.stdenv.mkDerivation {
exit 1
fi
# Copy circuits from blockchain module so result/lib/circuits is available
if [ -d "${logosBlockchainModule}/lib/circuits" ]; then
cp -r "${logosBlockchainModule}/lib/circuits" $out/modules/
fi
runHook postInstall
'';
}