Unverified Commit 030938f1 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #311786 from josephst/clblas-stdlib

clblas: fix building on aarch64-darwin
parents 88b7d613 4d03b1c0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, gfortran
, blas
@@ -21,7 +22,13 @@ stdenv.mkDerivation rec {
    sha256 = "154mz52r5hm0jrp5fqrirzzbki14c1jkacj75flplnykbl36ibjs";
  };

  patches = [ ./platform.patch ];
  patches = [
    ./platform.patch
    (fetchpatch {
      url = "https://github.com/clMathLibraries/clBLAS/commit/68ce5f0b824d7cf9d71b09bb235cf219defcc7b4.patch";
      hash = "sha256-XoVcHgJ0kTPysZbM83mUX4/lvXVHKbl7s2Q8WWiUnMs=";
    })
  ];

  postPatch = ''
    sed -i -re 's/(set\(\s*Boost_USE_STATIC_LIBS\s+).*/\1OFF\ \)/g' src/CMakeLists.txt