11 majorVersion = builtins.substring 0 1 version;
13 stdenv.mkDerivation rec {
17 url = "https://files.jrsoftware.org/is/${majorVersion}/innosetup-${version}.exe";
18 hash = "sha256-gRfRDQCirTOhOQl46jhyhhwzDgh5FEEKY3eyLExbhWM=";
22 wineWow64Packages.stable
33 cp -r ./app/* "$out/bin"
35 cat << 'EOF' > "$out/bin/iscc"
37 export PATH=${wineWow64Packages.stable}/bin:$PATH
38 export WINEDLLOVERRIDES="mscoree=" # disable mono
40 # Solves PermissionError: [Errno 13] Permission denied: '/homeless-shelter/.wine'
41 export HOME=$(mktemp -d)
43 wineInputFile=$(${wineWow64Packages.stable}/bin/wine winepath -w $1)
44 ${wineWow64Packages.stable}/bin/wine "$out/bin/ISCC.exe" "$wineInputFile"
47 substituteInPlace $out/bin/iscc \
48 --replace "\$out" "$out"
50 chmod +x "$out/bin/iscc"
57 description = "Compiler for Inno Setup, a tool for creating Windows installers";
58 homepage = "https://jrsoftware.org/isinfo.php";
59 changelog = "https://jrsoftware.org/files/is6-whatsnew.htm";
60 license = licenses.unfreeRedistributable;
62 platforms = wineWow64Packages.stable.meta.platforms;