новый файл: flake.lock

новый файл:    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
This commit is contained in:
Gregory Bednov 2026-09-02 11:08:59 +03:00
commit 04398840c0
8 changed files with 411 additions and 0 deletions

31
pkgs/mfc42/default.nix Normal file
View file

@ -0,0 +1,31 @@
# 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"
''