-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathdefault.nix
57 lines (50 loc) · 1.25 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
with (builtins.fromJSON (builtins.readFile ./nix/nixpkgs.json));
{ haddock ? true
, tests ? false
, overlays ? []
, allowBroken ? false
, allowUnfree ? true
}:
let
options = {
inherit
haddock tests overlays
allowBroken allowUnfree;
};
pkgs = import ./nix options;
release =
with pkgs.haskell.packages.ghc865;
with pkgs.haskell.lib;
sdistTarball (buildStrictly miso);
release-examples =
with pkgs.haskell.packages.ghcjs;
with pkgs.haskell.lib;
sdistTarball (buildStrictly miso-examples);
in
{
inherit pkgs;
#js
miso-ghcjs = pkgs.haskell.packages.ghcjs86.miso;
inherit (pkgs.haskell.packages.ghcjs86) miso-examples sample-app;
#native
miso-ghc = pkgs.haskell.packages.ghc865.miso;
miso-examples-ghc = pkgs.haskell.packages.ghc865.miso-examples;
inherit (pkgs.haskell.packages.ghc865) sample-app-jsaddle;
#wasm
inherit (pkgs) wasm-ghc ghc-wasm-meta;
hello-world-web-wasm = with pkgs;
wasmWebBuilder
{ name = "hello-world";
title = "Hello world Example";
src = wasmHelloWorld;
};
#hackage releases
inherit release release-examples;
#website
inherit (pkgs)
haskell-miso-client
haskell-miso-server
haskell-miso-runner;
#ci
deploy = pkgs.deploy rev;
}