clblas: fix build on darwin

This commit is contained in:
Rafael Ieda
2025-11-05 06:32:03 -03:00
parent 1701d4b756
commit 41fbabea29
+12 -7
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
llvmPackages_19,
fetchFromGitHub,
fetchpatch,
cmake,
@@ -12,15 +13,19 @@
opencl-headers,
}:
stdenv.mkDerivation rec {
let
stdenv' = if stdenv.hostPlatform.isDarwin then llvmPackages_19.stdenv else stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
pname = "clblas";
version = "2.12";
src = fetchFromGitHub {
owner = "clMathLibraries";
repo = "clBLAS";
rev = "v${version}";
sha256 = "154mz52r5hm0jrp5fqrirzzbki14c1jkacj75flplnykbl36ibjs";
tag = "v${finalAttrs.version}";
hash = "sha256-Wq5oBl3TW3qpK0cyNWVgJMS5/s8xY1dulqDCkkX5lZQ=";
};
patches = [
@@ -64,15 +69,15 @@ stdenv.mkDerivation rec {
strictDeps = true;
meta = with lib; {
meta = {
homepage = "https://github.com/clMathLibraries/clBLAS";
description = "Software library containing BLAS functions written in OpenCL";
longDescription = ''
This package contains a library of BLAS functions on top of OpenCL.
'';
license = licenses.asl20;
license = lib.licenses.asl20;
maintainers = [ ];
platforms = platforms.unix;
platforms = lib.platforms.unix;
};
}
})