diff options
author | Luke Granger-Brown <git@lukegb.com> | 2022-12-06 18:29:54 +0000 |
---|---|---|
committer | Luke Granger-Brown <git@lukegb.com> | 2022-12-06 18:29:54 +0000 |
commit | 5faeb3ba2db1f599ab55d48dddf4f1ff54eaa47f (patch) | |
tree | 186af3b4885b9a0eeea77c37f5aba9572014c24d /pkgs/games/factorio | |
parent | c6e6d44fe5f6c4ee4350ed330eb7996b57232ed8 (diff) |
factorio: fix review comments
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r-- | pkgs/games/factorio/utils.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/factorio/utils.nix b/pkgs/games/factorio/utils.nix index 86b0b2f851044..d2b52ae483660 100644 --- a/pkgs/games/factorio/utils.nix +++ b/pkgs/games/factorio/utils.nix @@ -18,9 +18,9 @@ with lib; # NB: there will only ever be a single zip file in each mod derivation's output dir ln -s $modDrv/*.zip $out done - '' + (if modsDatFile != null then '' + '' + (lib.optionalString (modsDatFile != null) '' cp ${modsDatFile} $out/mod-settings.dat - '' else ""); + ''); }; modDrv = { allRecommendedMods, allOptionalMods }: |