@@ -1,16 +1,59 @@
1−{ cabal, blazeHtml, blazeMarkup, cmdargs, elmCompiler, elmMake, filepath
1+{ unzip, fetchurl, fetchFromGitHub, cabal, blazeHtml, blazeMarkup, cmdargs, elmCompiler, elmMake, filepath
22, fsnotify, HTTP, mtl, snapCore, snapServer, systemFilepath, text
33, time, transformers, unorderedContainers, websockets
44, websocketsSnap
55}:
66
7−cabal.mkDerivation (self: {
7+cabal.mkDerivation (self: rec {
88 pname = "elm-reactor";
9− version = "0.2.0.1";
10− sha256 = "1qnrxr3wayhw92w6lghchz8avxbxg00w7p6d1vs7mq9q56876jgj";
9+ version = "0.3";
1110 isLibrary = false;
1211 isExecutable = true;
13− patches = [ ./0001-remove-custom-build-step.patch ];
12+ buildTools = [ unzip ];
13+
14+ src = fetchFromGitHub {
15+ owner = "elm-lang";
16+ repo = "elm-reactor";
17+ rev = "176ff8e05e4bb7474752da1b3455c83d6181d594";
18+ sha256 = "1marjqlmmq3a74g9f3ngk90h9mkhillcdwfsys6x0nqj6qirw4ph";
19+ };
20+ elmLangCore = fetchurl {
21+ url = "https://github.com/elm-lang/core/archive/1.1.0.zip";
22+ sha256 = "1fhvghjsay1p82k13039wbd02k439yplv2rh9zr77zvcbih6a31j";
23+ };
24+ elmHtml = fetchurl {
25+ url = "https://github.com/evancz/elm-html/archive/1.1.0.zip";
26+ sha256 = "01wshabxsdrxcxs2nn3dhk7n8720sp3prpkahhx36vvprdh05l4q";
27+ };
28+ elmMarkdown = fetchurl {
29+ url = "https://github.com/evancz/elm-markdown/archive/1.1.2.zip";
30+ sha256 = "14y1wp28za50zypdzyvl5d57hkm0v3rgnzm5klv3jcbd625kr9bg";
31+ };
32+ virtualDom = fetchurl {
33+ url = "https://github.com/evancz/virtual-dom/archive/1.1.0.zip";
34+ sha256 = "08dr7q0x1ycgj5b15s2kn1a45iw350gzq65c3lxp47xfffq1vz91";
35+ };
36+ elmStuff = ./elm-reactor-exact-dependencies.json;
37+
38+ preConfigure = ''
39+ unzip -d $TEMPDIR -q ${elmLangCore}
40+ mkdir -p elm-stuff/packages/elm-lang/core/1.1.0
41+ cp -pr $TEMPDIR/core-1.1.0/* elm-stuff/packages/elm-lang/core/1.1.0/
42+
43+ unzip -d $TEMPDIR -q ${elmHtml}
44+ mkdir -p elm-stuff/packages/evancz/elm-html/1.1.0
45+ cp -pr $TEMPDIR/elm-html-1.1.0/* elm-stuff/packages/evancz/elm-html/1.1.0
46+
47+ unzip -d $TEMPDIR -q ${elmMarkdown}
48+ mkdir -p elm-stuff/packages/evancz/elm-markdown/1.1.2
49+ cp -pr $TEMPDIR/elm-markdown-1.1.2/* elm-stuff/packages/evancz/elm-markdown/1.1.2
50+
51+ unzip -d $TEMPDIR -q ${virtualDom}
52+ mkdir -p elm-stuff/packages/evancz/virtual-dom/1.1.0
53+ cp -pr $TEMPDIR/virtual-dom-1.1.0/* elm-stuff/packages/evancz/virtual-dom/1.1.0
54+
55+ cp ${elmStuff} elm-stuff/exact-dependencies.json
56+ '';
1457 buildDepends = [
1558 blazeHtml blazeMarkup cmdargs elmCompiler filepath fsnotify HTTP
1659 mtl snapCore snapServer systemFilepath text time transformers
@@ -21,6 +64,5 @@ cabal.mkDerivation (self: {
2164 description = "Interactive development tool for Elm programs";
2265 license = self.stdenv.lib.licenses.bsd3;
2366 platforms = self.ghc.meta.platforms;
24−# broken = true;
2567 };
2668})