Unverified Commit 31518f25 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

fh: get libc++ headers on Darwin from stdenv.cc.libcxx

parent 5d09f1a6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
  stdenv,
  darwin,
  gcc,
  libcxx,
  cacert,
}:

@@ -38,7 +37,7 @@ rustPlatform.buildRustPackage rec {
  ];

  env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
    NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1";
    NIX_CFLAGS_COMPILE = "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
  };

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''