forked from knupfer/type-of-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
28 lines (28 loc) · 1.05 KB
/
shell.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
with (import <nixpkgs> { });
let
cabalName = "type-of-html";
client =
haskell.packages.ghcjs86.developPackage
{ root = ./.;
name = cabalName;
modifier = drv: haskell.lib.addBuildDepends drv
(with haskell.packages.ghcjs86;
# add extra ghc libraries here
[acme-iot]);
};
server =
haskell.packages.ghc865.developPackage
{ root = ./.;
name = cabalName;
modifier = drv: haskell.lib.addBuildDepends drv
(with haskell.packages.ghc865;
# add extra ghc libraries here
[shelly sr-build cabal-install cabal-plan raw-strings-qq acme-iot forest data-forest aeson-pretty aeson hsass hjsmin]);
};
merge = { mk ? stdenv.mkDerivation, client, server}:
mk
{ name = client.name + "-and-" + server.name;
buildInputs = [ client.buildInputs server.buildInputs ];
nativeBuildInputs = [ client.nativeBuildInputs server.nativeBuildInputs ];
};
in merge {client=client; server=server; }