Merge pull request #114383 from Anderssorby/acs/fix-minetest-port-option-coercion

nixos/minetest-server: Fix port coercion
This commit is contained in:
Maximilian Bosch 2021-03-07 21:37:49 +01:00 committed by GitHub
commit bd54f78047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ with lib;
let let
cfg = config.services.minetest-server; cfg = config.services.minetest-server;
flag = val: name: if val != null then "--${name} ${val} " else ""; flag = val: name: if val != null then "--${name} ${toString val} " else "";
flags = [ flags = [
(flag cfg.gameId "gameid") (flag cfg.gameId "gameid")
(flag cfg.world "world") (flag cfg.world "world")