Unverified Commit 26f4a510 authored by Zexin Yuan's avatar Zexin Yuan
Browse files

hmat-oss: fix build on darwin

parent 5c4f9f9b
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  fetchFromGitHub,
  cmake,
  pkg-config,
  blas,
  lapack,
}:
@@ -22,7 +23,14 @@ stdenv.mkDerivation rec {
    "-DHMAT_GIT_VERSION=OFF"
  ];

  nativeBuildInputs = [ cmake ];
  nativeBuildInputs =
    [
      cmake
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      pkg-config # used to find the LAPACK
    ];

  buildInputs = [
    blas
    lapack