on master help sign in
Fix -A linuxExe
commit4e2a337791947e7d52c2362b4a74ffe20d2c1c2c authorElliot Cameron <eacameron@gmail.com> dateSat 14 Mar 2020, 00:44 (7 years ago) parenta3ccae6
1 file changed+2−3
default.nix+2−3
default.nix+2−3
@@ -382,10 +382,9 @@ in rec {
382382 projectInst.passthru.staticFiles
383383 projectInst.passthru.__closureCompilerOptimizationLevel
384384 version;
385− linuxExe = serverOn (projectOut "x86_64-linux");
385+ linuxExe = serverOn (projectOut { system = "x86_64-linux"; });
386386 dummyVersion = "Version number is only available for deployments";
387387 in mainProjectOut // {
388−
389388 __unstable__.profiledObRun = let
390389 profiled = projectOut { inherit system; enableLibraryProfiling = true; };
391390 exeSource = builtins.toFile "ob-run.hs" ''
@@ -408,7 +407,7 @@ in rec {
408407 Obelisk.Run.run port (Obelisk.Run.runServeAsset assets) Backend.backend Frontend.frontend `finally` writeProfilingData profileFile
409408 '';
410409 in nixpkgs.runCommand "ob-run" {
411− buildInputs = [ (profiled.ghc.ghcWithPackages (p: [ p.backend p.frontend])) ];
410+ buildInputs = [ (profiled.ghc.ghcWithPackages (p: [ p.backend p.frontend])) ];
412411 } ''
413412 mkdir -p $out/bin/
414413 ghc -x hs -prof -fno-prof-auto -threaded ${exeSource} -o $out/bin/ob-run