Skip to content

Instantly share code, notes, and snippets.

@heath
Created February 10, 2020 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heath/15621aea850fd4593be0c5f7d81ebe67 to your computer and use it in GitHub Desktop.
Save heath/15621aea850fd4593be0c5f7d81ebe67 to your computer and use it in GitHub Desktop.
with (import (builtins.fetchTarball {
url = "https://github.com/dmjio/miso/archive/561ffad.tar.gz";
sha256 = "1wwzckz2qxb873wdkwqmx9gmh0wshcdxi7gjwkba0q51jnkfdi41";
}) {});
let
server = pkgs.haskell.packages.ghc865.callCabal2nix "app" ./. {};
client = pkgs.haskell.packages.ghcjs86.callCabal2nix "app" ./. {};
in
{
inherit server client;
app = pkgs.runCommand "miso-ismorphic-example" { inherit client server; } ''
mkdir -p $out/{bin,static}
cp ${server}/bin/* $out/bin/
${pkgs.tree}/bin/tree -a ${client}
cp ${client}/bin/client.jsexe/all.js $out/static/
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment