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