diff options
author | Joseph Stahl <1269177+josephst@users.noreply.github.com> | 2024-05-14 18:54:54 -0400 |
---|---|---|
committer | Joseph Stahl <1269177+josephst@users.noreply.github.com> | 2024-05-14 18:54:54 -0400 |
commit | 4d03b1c02675382549d72c3d3a84331b0634f737 (patch) | |
tree | 2dc3e4ac5210a2d51eaba062f701d1f89b21689b /pkgs/development/libraries/science/math | |
parent | ff98479070a2cfae8f810e200012419efbd83cb0 (diff) |
clblas: fix building on aarch64-darwin
Needs <stdlib.h> declared to avoid implicit declarations error
Diffstat (limited to 'pkgs/development/libraries/science/math')
-rw-r--r-- | pkgs/development/libraries/science/math/clblas/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/math/clblas/default.nix b/pkgs/development/libraries/science/math/clblas/default.nix index a87d107b3a17f..dfa157d05d655 100644 --- a/pkgs/development/libraries/science/math/clblas/default.nix +++ b/pkgs/development/libraries/science/math/clblas/default.nix @@ -1,5 +1,6 @@ { 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 |