новый файл: flake.nix новый файл: pkgs/codesys2/default.nix новый файл: pkgs/codesys2/setup.iss новый файл: pkgs/codesys3/default.nix новый файл: pkgs/mfc42/default.nix новый файл: pkgs/mspaintxp/default.nix новый файл: pkgs/vcredist2019/default.nix
31 lines
767 B
Nix
31 lines
767 B
Nix
# 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 <url>
|
|
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"
|
|
''
|