1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/development/libraries/rocm-thunk/default.nix
2020-09-18 20:43:47 +02:00

38 lines
786 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, numactl
}:
stdenv.mkDerivation rec {
pname = "rocm-thunk";
version = "3.8.0";
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "ROCT-Thunk-Interface";
rev = "rocm-${version}";
sha256 = "00xrwxndah2frdggqniz1j4s46ha3dav8qlnxm3gk9m4b80m774k";
};
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 ];
};
}