factorio: fix review comments

This commit is contained in:
Luke Granger-Brown 2022-12-06 18:29:54 +00:00
parent c6e6d44fe5
commit 5faeb3ba2d
2 changed files with 5 additions and 3 deletions

View file

@ -140,7 +140,9 @@ in
type = types.nullOr types.path;
default = null;
description = lib.mdDoc ''
Mods settings can be changed by specifying a dat file.
Mods settings can be changed by specifying a dat file, in the [mod
settings file
format](https://wiki.factorio.com/Mod_settings_file_format).
'';
};
game-name = mkOption {

View file

@ -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 }: