factorio: fix review comments
This commit is contained in:
parent
c6e6d44fe5
commit
5faeb3ba2d
2 changed files with 5 additions and 3 deletions
|
@ -140,7 +140,9 @@ in
|
||||||
type = types.nullOr types.path;
|
type = types.nullOr types.path;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc ''
|
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 {
|
game-name = mkOption {
|
||||||
|
|
|
@ -18,9 +18,9 @@ with lib;
|
||||||
# NB: there will only ever be a single zip file in each mod derivation's output dir
|
# NB: there will only ever be a single zip file in each mod derivation's output dir
|
||||||
ln -s $modDrv/*.zip $out
|
ln -s $modDrv/*.zip $out
|
||||||
done
|
done
|
||||||
'' + (if modsDatFile != null then ''
|
'' + (lib.optionalString (modsDatFile != null) ''
|
||||||
cp ${modsDatFile} $out/mod-settings.dat
|
cp ${modsDatFile} $out/mod-settings.dat
|
||||||
'' else "");
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
modDrv = { allRecommendedMods, allOptionalMods }:
|
modDrv = { allRecommendedMods, allOptionalMods }:
|
||||||
|
|
Loading…
Reference in a new issue