From ff8b3cc2b98b79bf4f38257253b7cc2846af72d9 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Fri, 10 Feb 2023 20:06:02 +0100 Subject: [PATCH] try to fix variable / escaping problem --- pkgs/openmw/tes3mp.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/openmw/tes3mp.nix b/pkgs/openmw/tes3mp.nix index 1f97ca6..a3afac0 100644 --- a/pkgs/openmw/tes3mp.nix +++ b/pkgs/openmw/tes3mp.nix @@ -122,18 +122,18 @@ symlinkJoin rec { paths = [ unwrapped ]; + cfgDir="\\$HOME/.config/openmw"; + # crudini --merge will create the file if it doesn't exist postBuild = '' mkdir -p $out/bin - dir=\''${XDG_CONFIG_HOME:-\$HOME/.config}/openmw - makeWrapper ${unwrapped}/libexec/tes3mp-browser $out/bin/tes3mp-browser \ --chdir "$out/bin" makeWrapper ${unwrapped}/libexec/tes3mp-server $out/bin/tes3mp-server \ - --run "mkdir -p $dir" \ - --run "${crudini}/bin/crudini --merge $dir/${cfgFile.name} < ${cfgFile}" \ + --run "mkdir -p ${cfgDir}" \ + --run "${crudini}/bin/crudini --merge ${cfgDir}/${cfgFile.name} < ${cfgFile}" \ --chdir "$out/bin" ''; }