{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , pkg-config , cmake , libdrm , numactl }: stdenv.mkDerivation (finalAttrs: { pname = "rocm-thunk"; version = "5.7.1"; src = fetchFromGitHub { owner = "ROCm"; repo = "ROCT-Thunk-Interface"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-jAMBks2/JaXiA45B3qvLHY8fPeFcr1GHT5Jieuduqhw="; }; nativeBuildInputs = [ pkg-config cmake ]; buildInputs = [ libdrm numactl ]; cmakeFlags = [ # Manually define CMAKE_INSTALL_