1{
2 mkDerivation,
3 aeson,
4 array,
5 attoparsec,
6 base,
7 binary,
8 bytestring,
9 containers,
10 deepseq,
11 directory,
12 dlist,
13 fetchFromGitHub,
14 ghc-prim,
15 ghcjs-prim,
16 hashable,
17 HUnit,
18 integer-gmp,
19 primitive,
20 QuickCheck,
21 quickcheck-unicode,
22 random,
23 scientific,
24 test-framework,
25 test-framework-hunit,
26 test-framework-quickcheck2,
27 text,
28 time,
29 transformers,
30 unordered-containers,
31 vector,
32 lib,
33}:
34mkDerivation {
35 pname = "ghcjs-base";
36 version = "0.2.1.0";
37 # This is the release 0.2.1.0, but the hackage release misses test source files,
38 # so lets use github https://github.com/ghcjs/ghcjs-base/issues/132
39 src = fetchFromGitHub {
40 owner = "ghcjs";
41 repo = "ghcjs-base";
42 rev = "fbaae59b05b020e91783df122249095e168df53f";
43 sha256 = "sha256-x6eCAK1Hne0QkV3Loi9YpxbleNHU593E4AO8cbk2vUc=";
44 };
45 libraryHaskellDepends = [
46 aeson
47 attoparsec
48 base
49 binary
50 bytestring
51 containers
52 deepseq
53 dlist
54 ghc-prim
55 ghcjs-prim
56 hashable
57 integer-gmp
58 primitive
59 scientific
60 text
61 time
62 transformers
63 unordered-containers
64 vector
65 ];
66 testHaskellDepends = [
67 array
68 base
69 bytestring
70 deepseq
71 directory
72 ghc-prim
73 ghcjs-prim
74 HUnit
75 primitive
76 QuickCheck
77 quickcheck-unicode
78 random
79 test-framework
80 test-framework-hunit
81 test-framework-quickcheck2
82 text
83 ];
84 homepage = "https://github.com/ghcjs/ghcjs-base";
85 description = "base library for GHCJS";
86 license = lib.licenses.mit;
87}