11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "rocm-${finalAttrs.version}";
19 hash = "sha256-uMSvcVJj+me2E+7FsXZ4l4hTcK6uKEegXpkHGcuist0=";
27 buildInputs = [ rocm-device-libs ];
29 passthru.updateScript = rocmUpdateScript {
30 name = finalAttrs.pname;
31 owner = finalAttrs.src.owner;
32 repo = finalAttrs.src.repo;
36 description = "OpenCL compilation with clang compiler";
37 mainProgram = "clang-ocl";
38 homepage = "https://github.com/ROCm/clang-ocl";
39 license = with licenses; [ mit ];
40 maintainers = teams.rocm.members;
41 platforms = platforms.linux;
43 versions.minor finalAttrs.version != versions.minor stdenv.cc.version
44 || versionAtLeast finalAttrs.version "6.0.0";