9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
16 rev = "rocm-${finalAttrs.version}";
17 hash = "sha256-lJX6nF1V4YmK5ai7jivXlRnG3doIOf6X9CWLHVdRuVg=";
20 nativeBuildInputs = [ cmake ];
23 substituteInPlace src/hipBin_amd.h \
24 --replace "/usr/bin/lsb_release" "${lsb-release}/bin/lsb_release"
29 ln -s $out/bin $out/hip/bin
32 passthru.updateScript = rocmUpdateScript {
33 name = finalAttrs.pname;
34 owner = finalAttrs.src.owner;
35 repo = finalAttrs.src.repo;
39 description = "Compiler driver utility that calls clang or nvcc";
40 homepage = "https://github.com/ROCm/HIPCC";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ lovesegfault ] ++ teams.rocm.members;
43 platforms = platforms.linux;
44 broken = versions.minor finalAttrs.version != versions.minor stdenv.cc.version || versionAtLeast finalAttrs.version "6.0.0";