0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
35 lines
875 B
Nix
35 lines
875 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rocmUpdateScript
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rocm-cmake";
|
|
version = "5.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RadeonOpenCompute";
|
|
repo = "rocm-cmake";
|
|
rev = "rocm-${finalAttrs.version}";
|
|
hash = "sha256-JarQqiiZ36WV1d6vyQD546GN1EtoKLcdvcZsG3QWD2Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
passthru.updateScript = rocmUpdateScript {
|
|
name = finalAttrs.pname;
|
|
owner = finalAttrs.src.owner;
|
|
repo = finalAttrs.src.repo;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "CMake modules for common build tasks for the ROCm stack";
|
|
homepage = "https://github.com/RadeonOpenCompute/rocm-cmake";
|
|
license = licenses.mit;
|
|
maintainers = teams.rocm.members;
|
|
platforms = platforms.unix;
|
|
broken = versions.minor finalAttrs.version != versions.minor stdenv.cc.version;
|
|
};
|
|
})
|