nixpkgs/pkgs/development/libraries/clang-ocl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
958 B
Nix
Raw Normal View History

2022-11-03 19:19:12 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rocmUpdateScript
2022-11-03 19:19:12 +00:00
, cmake
, rocm-cmake
, rocm-device-libs
}:
stdenv.mkDerivation (finalAttrs: {
2022-11-03 19:19:12 +00:00
pname = "clang-ocl";
version = "5.4.2";
2022-11-03 19:19:12 +00:00
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "clang-ocl";
rev = "rocm-${finalAttrs.version}";
2022-11-03 19:19:12 +00:00
hash = "sha256-uMSvcVJj+me2E+7FsXZ4l4hTcK6uKEegXpkHGcuist0=";
};
nativeBuildInputs = [
cmake
rocm-cmake
];
buildInputs = [ rocm-device-libs ];
2022-11-03 19:19:12 +00:00
passthru.updateScript = rocmUpdateScript {
name = finalAttrs.pname;
owner = finalAttrs.src.owner;
repo = finalAttrs.src.repo;
};
2022-11-03 19:19:12 +00:00
meta = with lib; {
description = "OpenCL compilation with clang compiler";
homepage = "https://github.com/RadeonOpenCompute/clang-ocl";
license = with licenses; [ mit ];
maintainers = teams.rocm.members;
2023-01-18 08:25:46 +00:00
platforms = platforms.linux;
broken = versions.minor finalAttrs.version != versions.minor stdenv.cc.version;
2022-11-03 19:19:12 +00:00
};
})