Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchpatch,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ninja,
|
|
opencl-headers,
|
|
ocl-icd,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clblast";
|
|
version = "1.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CNugteren";
|
|
repo = "CLBlast";
|
|
rev = version;
|
|
hash = "sha256-fzenYFCAQ0B2NQgh5OaErv/yNEzjznB6ogRapqfL6P4=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "clblast-fix-cmake4.patch";
|
|
url = "https://github.com/CNugteren/CLBlast/commit/dd714f1b72aa8c341e5a27aa9e968b4ecdaf1abb.patch";
|
|
includes = [ "CMakeLists.txt" ];
|
|
hash = "sha256-AVFzEdj1CaVSJxOcn5PoqFb+b8k5YgSMD3VhvHeBd7o=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
opencl-headers
|
|
ocl-icd
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# https://github.com/NixOS/nixpkgs/issues/144170
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tuned OpenCL BLAS library";
|
|
homepage = "https://github.com/CNugteren/CLBlast";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Tungsten842 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|