diff options
author | Daniël de Kok <me@danieldk.eu> | 2020-07-10 17:01:24 +0200 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2020-07-13 19:47:06 +0200 |
commit | 466d74c4ba1cff40a42cc8f4abbf6a2b46a77c0e (patch) | |
tree | 560a42988aa6b21a31c11836c6e1d94958b26d19 /pkgs/development/libraries/rocm-thunk/default.nix | |
parent | 3dd18f05e55085c57d4df40fdfb9cbe9f92102f6 (diff) |
rocm-thunk: init at 3.5.0
Diffstat (limited to 'pkgs/development/libraries/rocm-thunk/default.nix')
-rw-r--r-- | pkgs/development/libraries/rocm-thunk/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/rocm-thunk/default.nix b/pkgs/development/libraries/rocm-thunk/default.nix new file mode 100644 index 000000000000..42b632d293c5 --- /dev/null +++ b/pkgs/development/libraries/rocm-thunk/default.nix @@ -0,0 +1,37 @@ +{ stdenv +, fetchFromGitHub +, cmake +, pkg-config +, numactl +}: + +stdenv.mkDerivation rec { + pname = "rocm-thunk"; + version = "3.5.0"; + + src = fetchFromGitHub { + owner = "RadeonOpenCompute"; + repo = "ROCT-Thunk-Interface"; + rev = "rocm-${version}"; + sha256 = "0xn1z0xc3phjc9vabwxgph5any4ffhc8wgs5yb15m5wpg87l8x1z"; + }; + + 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 ]; + }; +} |