git.iko.soy/typeable/nixpkgs
on master help sign in
Updating Elm packages.

This includes updates to elm -compiler, -make, -package and -reactor. -repl's test suite currently breaks. The build for elm-reactor could be more concise, but it's clean. The final build step for elm-reactor ultimately relies on elm-package downloading some libraries, so anything radically better would probably need nix to step in and somehow emulate elm-package. That would take more knowledge about elm & nix than I have...

commitfb4a6119b6f997896d4e254ad8a878b283000787 authorKris Jenkins <krisajenkins@gmail.com> dateMon 19 Jan 2015, 09:18 (12 years ago) parentc163bac
7 files changed+63−38
pkgs/development/compilers/elm/0001-remove-custom-build-step.patch−25 pkgs/development/compilers/elm/elm-compiler.nix+2−2 pkgs/development/compilers/elm/elm-make.nix+2−2 pkgs/development/compilers/elm/elm-package.nix+2−2 pkgs/development/compilers/elm/elm-reactor-exact-dependencies.json+6 pkgs/development/compilers/elm/elm-reactor.nix+48−6 pkgs/top-level/haskell-packages.nix+3−1
pkgs/development/compilers/elm/0001-remove-custom-build-step.patchdeleted−25
@@ -1,25 +0,0 @@
1−From a164f7a2b662831ba26f5cebce23f97f1b5afccd Mon Sep 17 00:00:00 2001
2−From: Tom Hunger <tehunger@gmail.com>
3−Date: Thu, 8 Jan 2015 14:07:17 +0000
4−Subject: [PATCH] remove-custom-build-step
5−
6−---
7− Setup.hs | 2 --
8− 1 file changed, 2 deletions(-)
9−
10−diff --git a/Setup.hs b/Setup.hs
11−index 6f80fd8..a45ffc1 100644
12−--- a/Setup.hs
13−+++ b/Setup.hs
14−@@ -19,8 +19,6 @@ main =
15− myPostBuild :: Args -> BuildFlags -> PackageDescription -> LocalBuildInfo -> IO ()
16− myPostBuild args flags pd lbi =
17− do putStrLn "Custom build step: compiling debuggerInterface.elm"
18−- buildInterface
19−- concatJS lbi
20− postBuild simpleUserHooks args flags pd lbi
21−
22−
23−--
24−1.9.4
25−
pkgs/development/compilers/elm/elm-compiler.nix+2−2
@@ -9,8 +9,8 @@
99
1010cabal.mkDerivation (self: {
1111 pname = "elm-compiler";
12− version = "0.14";
13− sha256 = "1vgbs3navs6dr36k408kc83gkn2ndhmc0b1015zk3jb0wkmvm73y";
12+ version = "0.14.1";
13+ sha256 = "0my04mipgia5qw02nzzrzc4kq3vl7bv75rzrsmd2bdb2wll1k94f";
1414 isLibrary = true;
1515 isExecutable = true;
1616 buildDepends = [
pkgs/development/compilers/elm/elm-make.nix+2−2
@@ -6,8 +6,8 @@
66
77cabal.mkDerivation (self: {
88 pname = "elm-make";
9− version = "0.1";
10− sha256 = "1hrc8bzfqzrcmkzqcampxkn5m113blfp4095h6c2xnadiicbvwdy";
9+ version = "0.1.1";
10+ sha256 = "02mqr6v146piwrhycnmlxnky5bmsl7ap7781qmcwkfmc89wfa4zl";
1111 isLibrary = false;
1212 isExecutable = true;
1313 buildDepends = [
pkgs/development/compilers/elm/elm-package.nix+2−2
@@ -8,8 +8,8 @@
88
99cabal.mkDerivation (self: {
1010 pname = "elm-package";
11− version = "0.2.2";
12− sha256 = "0hkcy1mix2rng2k2zhzgb16nd0asfj9rm9ya2by67vjysiz8cmnr";
11+ version = "0.4";
12+ sha256 = "0vsq87imyvs1sa2n4z41b6qswy2cknxsg4prhwc9r7lvyljkmn03";
1313 isLibrary = true;
1414 isExecutable = true;
1515 buildDepends = [
pkgs/development/compilers/elm/elm-reactor-exact-dependencies.jsonnew file+6
@@ -0,0 +1,6 @@
1+{
2+ "evancz/virtual-dom": "1.1.0",
3+ "evancz/elm-markdown": "1.1.2",
4+ "evancz/elm-html": "1.1.0",
5+ "elm-lang/core": "1.1.0"
6+}
pkgs/development/compilers/elm/elm-reactor.nix+48−6
@@ -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})
pkgs/top-level/haskell-packages.nix+3−1
@@ -781,7 +781,9 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
781781 optparseApplicative = self.optparseApplicative_0_10_0;
782782 };
783783
784− elmPackage = callPackage ../development/compilers/elm/elm-package.nix {};
784+ elmPackage = callPackage ../development/compilers/elm/elm-package.nix {
785+ optparseApplicative = self.optparseApplicative_0_10_0;
786+ };
785787
786788 elmServer = callPackage ../development/compilers/elm/elm-server.nix {};
787789