mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
41 lines
929 B
Nix
41 lines
929 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, clang
|
|
, clang-unwrapped
|
|
, lld
|
|
, llvm
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocm-device-libs";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RadeonOpenCompute";
|
|
repo = "ROCm-Device-Libs";
|
|
rev = "rocm-${version}";
|
|
hash = "sha256-9p6PIXdHFIgHgNWZzqVz5O9i2Np0z/iyxodG2cLrpGs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ clang lld llvm ];
|
|
|
|
cmakeBuildType = "Release";
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_PREFIX_PATH=${llvm}/lib/cmake/llvm;${clang-unwrapped}/lib/cmake/clang"
|
|
"-DLLVM_TARGETS_TO_BUILD='AMDGPU;X86'"
|
|
"-DCLANG=${clang}/bin/clang"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Set of AMD-specific device-side language runtime libraries";
|
|
homepage = "https://github.com/RadeonOpenCompute/ROCm-Device-Libs";
|
|
license = licenses.ncsa;
|
|
maintainers = with maintainers; [ danieldk ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|