Skip to content

Commit

Permalink
revert disabling foundry override
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Feb 13, 2025
1 parent 0ae79b9 commit a975197
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,23 @@
# Ethereum contracts, solidity, ...
# TODO: remove alloy patch when forge includes this fix: https://github.com/alloy-rs/core/pull/864
# foundry
#(foundry.overrideAttrs {
# # Set the resolve limit to 128 by replacing the value in the vendored dependencies.
# postPatch = ''
# pushd $cargoDepsCopy/alloy-sol-macro-expander
(foundry.overrideAttrs {
# Set the resolve limit to 128 by replacing the value in the vendored dependencies.
postPatch = ''
pushd $cargoDepsCopy/alloy-sol-macro-expander
# oldHash=$(sha256sum src/expand/mod.rs | cut -d " " -f 1)
oldHash=$(sha256sum src/expand/mod.rs | cut -d " " -f 1)
# substituteInPlace src/expand/mod.rs \
# --replace-warn \
# 'const RESOLVE_LIMIT: usize = 32;' 'const RESOLVE_LIMIT: usize = 128;'
substituteInPlace src/expand/mod.rs \
--replace-warn \
'const RESOLVE_LIMIT: usize = 32;' 'const RESOLVE_LIMIT: usize = 128;'
# substituteInPlace .cargo-checksum.json \
# --replace-warn $oldHash $(sha256sum src/expand/mod.rs | cut -d " " -f 1)
substituteInPlace .cargo-checksum.json \
--replace-warn $oldHash $(sha256sum src/expand/mod.rs | cut -d " " -f 1)
# popd
# '';
#})
popd
'';
})
solc
nodePackages.prettier
solhint
Expand Down

0 comments on commit a975197

Please sign in to comment.