10 enableStatic ? stdenv.hostPlatform.isStatic,
13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "sha256-s/NEFU4IwQPLyPLwMmrrpMDd73q22Sk2BNid/kedawY=";
24 # Fixes /build references in the rpath
25 patches = [ ./rpath.patch ];
40 enableParallelBuilding = true;
46 static = if enableStatic then "1" else "0";
55 mkdir -p $dev/lib/pkgconfig
56 mv $out/lib/*.pc $dev/lib/pkgconfig
58 moveToOutput "share/libxsmm" ''${!outputDoc}
66 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
67 description = "Library targeting Intel Architecture for specialized dense and sparse matrix operations, and deep learning primitives";
68 mainProgram = "libxsmm_gemm_generator";
69 license = licenses.bsd3;
70 homepage = "https://github.com/hfp/libxsmm";
71 platforms = platforms.linux;
72 maintainers = with lib.maintainers; [ chessai ];