2025-12-17 17:10:59 +01:00
|
|
|
{
|
2026-01-30 19:21:23 +01:00
|
|
|
description = "Logos Blockchain Module - Qt6 Plugin";
|
2025-12-17 17:10:59 +01:00
|
|
|
|
|
|
|
|
inputs = {
|
2026-06-27 01:51:46 +05:30
|
|
|
logos-module-builder.url = "github:logos-co/logos-module-builder?ref=92ef691ea72844134f6c68fb447d37f855fc9690";
|
2026-06-25 09:04:34 +02:00
|
|
|
# https://github.com/logos-blockchain/logos-blockchain/commit/58d71393cb7c5e8d425f54b09f2f28e0d9905fdc
|
2026-06-26 20:59:13 +00:00
|
|
|
logos-blockchain.url = "github:logos-blockchain/logos-blockchain?ref=56a74d2bbd5d1e2079af114c304dfdf22335c4de";
|
2025-12-17 17:10:59 +01:00
|
|
|
};
|
|
|
|
|
|
2026-06-05 11:26:27 -04:00
|
|
|
outputs = inputs@{ logos-module-builder, ... }:
|
|
|
|
|
logos-module-builder.lib.mkLogosModule {
|
|
|
|
|
src = ./.;
|
|
|
|
|
configFile = ./metadata.json;
|
|
|
|
|
flakeInputs = inputs;
|
|
|
|
|
|
|
|
|
|
externalLibInputs = {
|
|
|
|
|
logos_blockchain = inputs.logos-blockchain;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
tests = {
|
|
|
|
|
dir = ./tests;
|
|
|
|
|
mockCLibs = [ "logos_blockchain" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
postInstall = ''
|
2026-06-15 15:42:15 +03:00
|
|
|
# Remove nix references to make the module portable.
|
|
|
|
|
find "$out" -type f | while read -r binary; do
|
|
|
|
|
if file "$binary" | grep -E -q "Mach-O|shared library|executable|archive"; then
|
|
|
|
|
echo "Scrubbing references inside verified target: $binary"
|
|
|
|
|
chmod +w "$binary" 2>/dev/null || true
|
|
|
|
|
|
|
|
|
|
perl -pi -e 's|/nix/store/[a-z0-9]{32}-boost|/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-boost|g' "$binary" 2>/dev/null || true
|
|
|
|
|
perl -pi -e 's|/nix/store/[a-z0-9]{32}-nlohmann_json|/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-nlohmann_json|g' "$binary" 2>/dev/null || true
|
|
|
|
|
perl -pi -e 's|/nix/store/[a-z0-9]{32}-vendor-cargo-deps|/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps|g' "$binary" 2>/dev/null || true
|
|
|
|
|
perl -pi -e 's|/nix/var/nix/b/[a-z0-9]{26}/|/tmp/eeeeeeeeeeeeeeeeeeeeeeeeee/|g' "$binary" 2>/dev/null || true
|
|
|
|
|
fi
|
|
|
|
|
done
|
2026-06-05 11:26:27 -04:00
|
|
|
'';
|
2025-12-18 11:47:59 +01:00
|
|
|
};
|
2025-12-17 17:10:59 +01:00
|
|
|
}
|