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
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 = [
(flag cfg.gameId "gameid")
(flag cfg.world "world")