nixpkgs/pkgs/development/rocm-modules/5/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 20:19:12 +01:00
{ lib
, stdenv
, fetchFromGitHub
, rocmUpdateScript
2022-11-03 20:19:12 +01:00
, cmake
, rocm-cmake
, rocm-device-libs
}:
stdenv.mkDerivation (finalAttrs: {
2022-11-03 20:19:12 +01:00
pname = "clang-ocl";
version = "5.7.0";
2022-11-03 20:19:12 +01:00
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "clang-ocl";
rev = "rocm-${finalAttrs.version}";
2022-11-03 20:19:12 +01:00
hash = "sha256-uMSvcVJj+me2E+7FsXZ4l4hTcK6uKEegXpkHGcuist0=";
};
nativeBuildInputs = [
cmake
rocm-cmake
];
buildInputs = [ rocm-device-libs ];
2022-11-03 20:19:12 +01:00
passthru.updateScript = rocmUpdateScript {
name = finalAttrs.pname;
owner = finalAttrs.src.owner;
repo = finalAttrs.src.repo;
};
2022-11-03 20:19:12 +01: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 09:25:46 +01:00
platforms = platforms.linux;
broken = versions.minor finalAttrs.version != versions.minor stdenv.cc.version;
2022-11-03 20:19:12 +01:00
};
})