2024-10-12 09:16:41 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
}:
|
2023-10-05 21:47:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aocl-utils";
|
2024-10-12 09:15:28 +00:00
|
|
|
version = "5.0";
|
2023-10-05 21:47:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amd";
|
|
|
|
repo = "aocl-utils";
|
|
|
|
rev = version;
|
2024-10-12 09:15:28 +00:00
|
|
|
hash = "sha256-96j3Sw+Ts+CZzjPpUlt8cRYO5z0iASo+W/x1nrrAyQE=";
|
2023-10-05 21:47:42 +00:00
|
|
|
};
|
|
|
|
|
2024-10-12 09:15:28 +00:00
|
|
|
patches = [ ./pkg-config.patch ];
|
|
|
|
|
2023-10-05 21:47:42 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2024-10-12 09:15:28 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "AU_BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic)
|
|
|
|
(lib.cmakeBool "AU_BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
|
|
];
|
|
|
|
|
2023-10-05 21:47:42 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Interface to all AMD AOCL libraries to access CPU features";
|
|
|
|
homepage = "https://github.com/amd/aocl-utils";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|