nixpkgs/pkgs/development/libraries/rocm-thunk/default.nix
2020-12-01 07:40:00 +01:00

38 lines
784 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, numactl
}:
stdenv.mkDerivation rec {
pname = "rocm-thunk";
version = "3.10.0";
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "ROCT-Thunk-Interface";
rev = "rocm-${version}";
hash = "sha256-FLH+GHXA0zepbR1wPPSez/hx1hiG2kkCTneDKhJJRjU=";
};
preConfigure = ''
export cmakeFlags="$cmakeFlags "
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ numactl ];
postInstall = ''
cp -r $src/include $out
'';
meta = with stdenv.lib; {
description = "Radeon open compute thunk interface";
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface";
license = with licenses; [ bsd2 mit ];
maintainers = with maintainers; [ danieldk ];
};
}