@@ -185,11 +185,11 @@ rec {
185185 set -eux
186186 ln -s "${justStaticExecutables backend}"/bin/backend $out/backend
187187 ln -s "${mkAssets assets}" $out/static.assets
188− ln -s "${config}" $out/config
188+ cp -r ${config} $out/config
189189 ln -s ${mkAssets (compressedJs frontend)} $out/frontend.jsexe.assets
190190 '';
191191
192− server = { exe, hostName, adminEmail, routeHost, enableHttps }:
192+ server = { exe, hostName, adminEmail, routeHost, enableHttps, ... }:
193193 let system = "x86_64-linux";
194194 nixos = import (pkgs.path + /nixos);
195195 backendPort = 8000;
@@ -302,15 +302,15 @@ rec {
302302 };
303303 };
304304 in mkProject (projectDefinition args));
305− serverOn = sys: serverExe (projectOut sys).ghc.backend (projectOut system).ghcjs.frontend static configPath;
306− linuxExe = serverOn "x86_64-linux";
307− in projectOut system // {
308− inherit linuxExe;
305+ serverOn = sys: config: serverExe (projectOut sys).ghc.backend (projectOut system).ghcjs.frontend static config;
309306 # `exe` is project's backend executable, with frontend assets, config, etc.
310307 # `linuxExe` is the same but built for x86_64-linux.
311− exe = serverOn system;
312− server = args@{ hostName, adminEmail, routeHost, enableHttps }:
313− server (args // { exe = linuxExe;});
308+ exe = serverOn system configPath;
309+ linuxExe = serverOn "x86_64-linux" configPath;
310+ in projectOut system // {
311+ inherit exe linuxExe;
312+ server = args@{ hostName, adminEmail, routeHost, enableHttps, config }:
313+ server (args // { exe = serverOn "x86_64-linux" config;});
314314 obelisk = import (base + "/.obelisk/impl") {};
315315 };
316316 haskellPackageSets = {