# mfc42.dll / mfc42u.dll, taken from the Visual C++ 6.0 redistributable. { runCommand, fetchurl, p7zip, cabextract, }: let # To get the hash: nix-prefetch-url --type sha256 redist = fetchurl { url = "https://download.microsoft.com/download/vc60pro/Update/2/W9XNT4/EN-US/VC6RedistSetup_deu.exe"; hash = "sha256-wuuR2cREjVDkajL+y8w7QYcG0AK+q5tfSYHeVSCYzuc="; }; in runCommand "mfc42" { nativeBuildInputs = [ p7zip cabextract ]; } '' # VC6RedistSetup_deu.exe is a self-extracting archive that 7z can unpack; # the vcredist.exe inside it is a CAB holding the actual DLLs. 7z e ${redist} vcredist.exe -otmp -y mkdir -p $out/windll cabextract tmp/vcredist.exe -d $out/windll -F "mfc42*.dll" ''