Unverified Commit bacecfa3 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

lighthouse: use OpenSSL from Nixpkgs

parent f60e814d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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"
  ];