lighthouse: use OpenSSL from Nixpkgs

This commit is contained in:
Alyssa Ross
2024-09-28 17:33:17 +02:00
parent f60e814dc8
commit bacecfa3b6
@@ -6,7 +6,7 @@
, lighthouse
, nix-update-script
, nodePackages
, perl
, openssl
, pkg-config
, postgresql
, protobuf
@@ -57,7 +57,6 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
rustPlatform.bindgenHook
cmake
perl
pkg-config
protobuf
];
@@ -65,6 +64,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
rust-jemalloc-sys
sqlite
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreFoundation
Security
@@ -84,6 +85,8 @@ rustPlatform.buildRustPackage rec {
LIGHTHOUSE_DEPOSIT_CONTRACT_SPEC_URL = "file://${depositContractSpec}";
LIGHTHOUSE_DEPOSIT_CONTRACT_TESTNET_URL = "file://${testnetDepositContractSpec}";
OPENSSL_NO_VENDOR = true;
cargoBuildFlags = [
"--package lighthouse"
];