{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , pkg-config , cmake , rocm-cmake , libdrm , numactl , valgrind , gcc }: stdenv.mkDerivation (finalAttrs: { pname = "rocm-thunk"; version = "5.4.4"; src = fetchFromGitHub { owner = "RadeonOpenCompute"; repo = "ROCT-Thunk-Interface"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-EU5toaKzVeZpdm/YhaQ0bXq0eoYwYQ5qGLUJzxgZVjE="; }; nativeBuildInputs = [ pkg-config cmake rocm-cmake ]; buildInputs = [ libdrm numactl valgrind gcc.cc.libgcc or null # TODO: unhack this? ]; cmakeFlags = [ # Manually define CMAKE_INSTALL_