diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..15dfdae --- /dev/null +++ b/default.nix @@ -0,0 +1,24 @@ +with import <nixpkgs> {}; + +let + reflex-platform = import (pkgs.fetchFromGitHub { + owner = "reflex-frp"; + repo = "reflex-platform"; + rev = "504b0344dfa6d03e4c89cf70ab9792b0a1fa021b"; + sha256 = "01hvdwc6bw48falpha5kaq4p7w98hc804kkwrayipb5ld1snchpz"; + }) {}; + + buildInputs = [ pkgs.noDemon ]; +in + reflex-platform.project ({ pkgs, ... }: { + packages = { + common = ./common; + server = ./server; + client = ./client; + }; + + shells = { + ghc = [ "common" "server" ]; + ghcjs = [ "common" "client" ]; + }; + }) |