blob: e4bbd09a7586bd4f2cd57f7d68eb85bd57701702 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
, opencl-headers
, ocl-icd
}:
stdenv.mkDerivation rec {
pname = "clblast";
version = "1.6.2";
src = fetchFromGitHub {
owner = "CNugteren";
repo = "CLBlast";
rev = version;
hash = "sha256-S25g25Il6rzkpU9IqOFDDeEr3uYyt/uewZZAl09YSts=";
};
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 = "The tuned OpenCL BLAS library";
homepage = "https://github.com/CNugteren/CLBlast";
license = licenses.asl20;
maintainers = with maintainers; [ Tungsten842 ];
platforms = platforms.linux;
};
}
|