-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: precompile with hermes is not tested (#1326)
- Loading branch information
Showing
7 changed files
with
53 additions
and
41 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
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 was deleted.
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
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,35 @@ | ||
{ src | ||
, lib | ||
, stdenv | ||
, darwin | ||
, rustPlatform | ||
, symlinkJoin | ||
, openssl | ||
, pkg-config | ||
}: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
name = "hermes"; | ||
inherit src; | ||
cargoBuildFlags = "-p ibc-relayer-cli"; | ||
buildInputs = lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.Security | ||
pkg-config | ||
openssl | ||
darwin.libiconv | ||
darwin.apple_sdk.frameworks.SystemConfiguration | ||
]; | ||
cargoLock = { | ||
lockFile = "${src}/Cargo.lock"; | ||
outputHashes = { | ||
"ibc-proto-0.38.0" = "sha256-UhpWBzraC6fMPJ0BVK6CxdrywoEayNq0tBU0N3MxmB4="; | ||
}; | ||
}; | ||
doCheck = false; | ||
RUSTFLAGS = "--cfg ossl111 --cfg ossl110 --cfg ossl101"; | ||
OPENSSL_NO_VENDOR = "1"; | ||
OPENSSL_DIR = symlinkJoin { | ||
name = "openssl"; | ||
paths = with openssl; [ out dev ]; | ||
}; | ||
} |
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