blob: 159f4032bafb087e2f53505098122b96a3d29129 (
plain)
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
|
{ nixpkgs }:
with nixpkgs;
let
ghc = pkgs.haskell.packages.ghc844.ghcWithPackages (hp: with hp; [
acid-state
blaze-html
blaze-markup
bytestring
hinotify
miso
MonadRandom
protolude
random
scotty
servant
servant-server
shakespeare
text
]);
ghcjs_ = pkgs.haskell.packages.ghcjs.override (oldAttrs: {
overrides = with pkgs.haskell.lib; self: super: {
http-types = dontCheck super.http-types;
tasty-quickcheck = dontCheck super.tasty-quickcheck;
scientific = dontCheck super.scientific; # takes forever
servant = dontCheck super.servant;
};
});
ghcjs = ghcjs_.ghcWithPackages (hp: with hp; [
aeson
containers
ghcjs-base
miso
protolude
servant
text
]);
make = ../chip/make;
entrypoint = "Ibb";
in
stdenv.mkDerivation rec {
name = "ibb";
version = "0";
src = ../.;
nativeBuildInputs = [
ghc ghcjs
];
strictDeps = true;
buildPhase = "${ghc}/bin/runhaskell ${make} ibb";
installPhase = ''
mkdir -p $out/bin
cp bild/${name} $out/bin/${name}
'';
}
|