Skip to content

Commit

Permalink
fix: use writeShellScriptBin instead of writeScriptBin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshmllow committed Sep 5, 2024
1 parent 21b21d8 commit 880e4b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
pkgs,
writeScriptBin,
writeShellScriptBin,
lib,
wineUnwrapped,
wine,
affinityPath,
wineboot,
winetricks,
}: rec {
check = writeScriptBin "check" ''
check = writeShellScriptBin "check" ''
WINEDLLOVERRIDES="mscoree=" ${lib.getExe wineboot} --init
${lib.getExe wine} msiexec /i "${wineUnwrapped}/share/wine/mono/wine-mono-8.1.0-x86.msi"
${lib.getExe winetricks} -q dotnet48 corefonts vcrun2015
Expand All @@ -20,15 +20,15 @@
createInstaller = name: let
sources = pkgs.callPackage ./source.nix {};
in
writeScriptBin "install-Affinity-${name}-2" ''
writeShellScriptBin "install-Affinity-${name}-2" ''
${lib.getExe check} || exit 1
${lib.getExe wine} ${sources.${lib.toLower name}}
'';

createRunner = name: let
installer = createInstaller name;
in
writeScriptBin "run-Affinity-${name}-2" ''
writeShellScriptBin "run-Affinity-${name}-2" ''
if [ ! -f "${affinityPath}/drive_c/Program Files/Affinity/${name} 2/${name}.exe" ]; then
${lib.getExe installer} || exit 1
else
Expand Down

0 comments on commit 880e4b8

Please sign in to comment.