-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from ralexstokes/new-nix
New nix
- Loading branch information
Showing
7 changed files
with
175 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target | ||
local* | ||
result |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ members = ["bin/mev", "mev-boost-rs", "mev-relay-rs", "mev-build-rs", "mev-rs"] | |
default-members = ["bin/mev"] | ||
|
||
[workspace.package] | ||
name = "mev-rs" | ||
version = "0.3.0" | ||
|
||
[workspace.dependencies] | ||
|
@@ -25,3 +24,9 @@ revm = { git = "https://github.com/bluealloy/revm/", branch = "release/v25" } | |
[patch.crates-io] | ||
revm = { git = "https://github.com/bluealloy/revm/", branch = "release/v25" } | ||
revm-primitives = { git = "https://github.com/bluealloy/revm/", branch = "release/v25" } | ||
|
||
# NOTE: this is not strictly required to build | ||
# but, it works better with the default nix rust build environment | ||
# TODO: remove this patch once we have updated to at least `[email protected]` | ||
[patch.'https://github.com/ethereum/c-kzg-4844'] | ||
c-kzg = "0.1.1" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ pkgs, crane }: | ||
with pkgs; | ||
let | ||
commonArgs = { | ||
pname = "mev-rs"; | ||
src = crane.cleanCargoSource (crane.path ../.); | ||
buildInputs = [ ] ++ lib.optionals pkgs.stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.Network | ||
]; | ||
}; | ||
cargoArtifacts = crane.buildDepsOnly commonArgs; | ||
in | ||
crane.buildPackage (commonArgs // { inherit cargoArtifacts; }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{ pkgs, lib }: | ||
{ pkgs, rustToolchain }: | ||
with pkgs; | ||
mkShell { | ||
buildInputs = lib.lists.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.Network | ||
] ++ [ | ||
iconv | ||
buildInputs = [ | ||
just | ||
mdbook | ||
zlib | ||
rustToolchain | ||
]; | ||
} |