gklib: init at 5.1.1-unstable-2023-03-27
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
llvmPackages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "gklib";
|
||||
version = "5.1.1-unstable-2023-03-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KarypisLab";
|
||||
repo = "GKlib";
|
||||
rev = "8bd6bad750b2b0d90800c632cf18e8ee93ad72d7";
|
||||
hash = "sha256-tunepMLaRDR5FQVL/9S7/w6e1j+f2+pg01H/0/z/ZCI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "OPENMP" true)
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
||||
# Turns off using clflush/sfence insns in gkuniq test app
|
||||
# https://github.com/KarypisLab/GKlib/issues/11#issuecomment-1532597211
|
||||
(lib.cmakeBool "NO_X86" (!stdenv.hostPlatform.isx86))
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Library of various helper routines and frameworks used by many of the lab's software";
|
||||
homepage = "https://github.com/KarypisLab/GKlib";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ qbisi ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user