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