{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , wrapPython }: stdenv.mkDerivation (finalAttrs: { pname = "rocm-smi"; version = "5.7.1"; src = fetchFromGitHub { owner = "ROCm"; repo = "rocm_smi_lib"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-NZR4jBgKVfpkRNQFPmav1yCZF872LkcrPBNNcBVTLDU="; }; patches = [ ./cmake.patch ]; nativeBuildInputs = [ cmake wrapPython ]; cmakeFlags = [ # Manually define CMAKE_INSTALL_