summaryrefslogtreecommitdiff
path: root/pkgs/by-name/so/solana-cli/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/so/solana-cli/package.nix')
-rw-r--r--pkgs/by-name/so/solana-cli/package.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/by-name/so/solana-cli/package.nix b/pkgs/by-name/so/solana-cli/package.nix
index c1faaafceb28..5535c8796580 100644
--- a/pkgs/by-name/so/solana-cli/package.nix
+++ b/pkgs/by-name/so/solana-cli/package.nix
@@ -6,7 +6,6 @@
darwin,
udev,
protobuf,
- libcxx,
rocksdb_8_3,
installShellFiles,
pkg-config,
@@ -99,7 +98,6 @@ rustPlatform.buildRustPackage rec {
]
++ lib.optionals stdenv.hostPlatform.isLinux [ udev ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
- libcxx
IOKit
Security
AppKit
@@ -133,8 +131,8 @@ rustPlatform.buildRustPackage rec {
# Require this on darwin otherwise the compiler starts rambling about missing
# cmath functions
- CPPFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1";
- LDFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-L${lib.getLib libcxx}/lib";
+ CPPFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-isystem ${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
+ LDFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-L${lib.getLib stdenv.cc.libcxx}/lib";
# If set, always finds OpenSSL in the system, even if the vendored feature is enabled.
OPENSSL_NO_VENDOR = 1;