Skip to content

Commit

Permalink
clblas: fix building on aarch64-darwin
Browse files Browse the repository at this point in the history
Needs <stdlib.h> declared to avoid implicit declarations error
  • Loading branch information
josephst committed May 14, 2024
1 parent ff98479 commit 4d03b1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/science/math/clblas/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, gfortran
, blas
Expand All @@ -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
Expand Down

0 comments on commit 4d03b1c

Please sign in to comment.