-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathdefault.nix
74 lines (61 loc) · 1.53 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
with (builtins.fromJSON (builtins.readFile ./nix/nixpkgs.json));
{ haddock ? true, tests ? false, overlays ? [] }:
let
pkgs = import ./nix {
inherit haddock tests overlays;
};
in with pkgs.haskell.lib;
{
inherit pkgs;
# hacakge release
release =
with pkgs.haskell.packages.ghc865;
sdistTarball (buildStrictly miso);
release-examples =
with pkgs.haskell.packages.ghcjs;
sdistTarball (buildStrictly miso-examples);
#js
miso-ghcjs = pkgs.haskell.packages.ghcjs86.miso;
inherit (pkgs.haskell.packages.ghcjs86) miso-examples sample-app-js;
#native
miso-ghc = pkgs.haskell.packages.ghc865.miso;
miso-examples-ghc = pkgs.haskell.packages.ghc865.miso-examples;
inherit (pkgs.haskell.packages.ghc865) sample-app;
# Miso wasm examples
# nix-build -A wasmExamples
# && ./result/bin/build.sh
# && nix-build -A svgWasm
# && http-server ./result/svg.wasmexe
inherit (pkgs)
wasmExamples
svgWasm
componentsWasm
todoWasm;
#wasm utils
inherit (pkgs)
wasm-ghc
ghc-wasm-meta
hello-world-web-wasm;
# sse
inherit (pkgs.ssePkgs)
sse-runner
sse-client
sse-server;
#website
inherit (pkgs)
haskell-miso-dev
haskell-miso-client
haskell-miso-server
haskell-miso-runner;
#code coverage
inherit (pkgs) coverage;
#ci
deploy = pkgs.deploy rev;
inherit (pkgs) haskell-miso-org-test;
# ghciwatch
inherit (pkgs) ghciwatch;
# utils
inherit (pkgs.haskell.packages.ghc865) miso-from-html;
# misc. examples
inherit (pkgs) more-examples;
}