@@ -232,17 +232,16 @@ in rec {
235− serverExe = backend: frontend: assets: config: optimizationLevel:
235+ serverExe = backend: frontend: assets: optimizationLevel:
236 pkgs.runCommand "serverExe" {} ''
236 pkgs.runCommand "serverExe" {} ''
237 mkdir $out
237 mkdir $out
239 ln -s "${haskellLib.justStaticExecutables backend}"/bin/* $out/
239 ln -s "${haskellLib.justStaticExecutables backend}"/bin/* $out/
240 ln -s "${mkAssets assets}" $out/static.assets
240 ln -s "${mkAssets assets}" $out/static.assets
241− cp -r ${config} $out/config
242 ln -s ${mkAssets (compressedJs frontend optimizationLevel)} $out/frontend.jsexe.assets
241 ln -s ${mkAssets (compressedJs frontend optimizationLevel)} $out/frontend.jsexe.assets
245− server = { exe, hostName, adminEmail, routeHost, enableHttps, config }@args:
244+ server = { exe, hostName, adminEmail, routeHost, enableHttps }@args:
247 nixos = import (pkgs.path + /nixos);
246 nixos = import (pkgs.path + /nixos);
248 in nixos {
247 in nixos {
@@ -328,15 +327,13 @@ in rec {
328 passthru = { inherit android ios packages overrides tools shellToolOverrides withHoogle staticFiles __closureCompilerOptimizationLevel; };
327 passthru = { inherit android ios packages overrides tools shellToolOverrides withHoogle staticFiles __closureCompilerOptimizationLevel; };
330 in mkProject (projectDefinition args));
329 in mkProject (projectDefinition args));
331− serverOn = sys: config: serverExe (projectOut sys).ghc.backend (projectOut system).ghcjs.frontend (projectOut sys).passthru.staticFiles config (projectOut sys).passthru.__closureCompilerOptimizationLevel;
330+ serverOn = sys: serverExe (projectOut sys).ghc.backend (projectOut system).ghcjs.frontend (projectOut sys).passthru.staticFiles (projectOut sys).passthru.__closureCompilerOptimizationLevel;
332 linuxExe = serverOn "x86_64-linux";
331 linuxExe = serverOn "x86_64-linux";
333 in projectOut system // {
332 in projectOut system // {
334 linuxExeConfigurable = linuxExe;
333 linuxExeConfigurable = linuxExe;
335− linuxExe = linuxExe (base + "/config");
334+ linuxExe = linuxExe;
336− exe = serverOn system (base + "/config") ;
335+ exe = serverOn system;
337− server = args@{ hostName, adminEmail, routeHost, enableHttps, config }: let
336+ server = args@{ hostName, adminEmail, routeHost, enableHttps }: server (args // { exe = linuxExe; });
338− injectableConfig = builtins.filterSource (path: _: !(lib.hasPrefix (toString config + "/backend") (toString path))) config;
339− in server (args // { exe = linuxExe injectableConfig; });
340 obelisk = import (base + "/.obelisk/impl") {};
337 obelisk = import (base + "/.obelisk/impl") {};
342 haskellPackageSets = {
339 haskellPackageSets = {