git.iko.soy/typeable/nixpkgs
on master help sign in
elm: add documentation on how to use update scripts and run them properly
commitd3da0bd78f1a6e646a9369f32a16a4838a6f5384 authorNikolay Amiantov <ab@fmap.me> dateWed 18 May 2016, 13:30 (11 years ago) parentc366ab9
3 files changed+17−14
pkgs/development/compilers/elm/default.nix+6−3 pkgs/development/compilers/elm/packages/elm-reactor-elm.nix+5−5 pkgs/development/compilers/elm/update-elm.rb+6−6
pkgs/development/compilers/elm/default.nix+6−3
@@ -1,5 +1,11 @@
11{ lib, stdenv, buildEnv, haskell, nodejs, fetchurl, fetchpatch, makeWrapper }:
22
3+# To update:
4+# 1) Update versions in ./update-elm.rb and run it.
5+# 2) Checkout elm-reactor and run `elm-package install -y` inside.
6+# 3) Run ./elm2nix.rb in elm-reactor's directory.
7+# 4) Move the resulting 'package.nix' to 'packages/elm-reactor-elm.nix'.
8+
39let
410 makeElmStuff = deps:
511 let json = builtins.toJSON (lib.mapAttrs (name: info: info.version) deps);
@@ -61,9 +67,6 @@ let
6167 in elmPkgs // {
6268 inherit elmPkgs;
6369 elmVersion = elmRelease.version;
64−
65− # To unbreak elm-compiler
66− language-ecmascript = self.language-ecmascript_0_17_0_2;
6770 };
6871 };
6972in hsPkgs.elmPkgs // {
pkgs/development/compilers/elm/packages/elm-reactor-elm.nix+5−5
@@ -5,18 +5,18 @@
55 };
66 "evancz/elm-markdown" = {
77 version = "3.0.0";
8− sha256 = "1wlr8sgnyq6qgh5rcjy7imfmpqxrxgmmqcfx6p541fs70yiqya12";
8+ sha256 = "0r3hcim4mpn46ahv1q6sjp6i2viyp7jik6i71xgwmvfb9drns2p6";
99 };
1010 "elm-lang/html" = {
1111 version = "1.0.0";
1212 sha256 = "16cr01yxkpkmgbgclp2p80nd62a6fjw3qipzjsgksrhwv9vv4gm4";
1313 };
14− "elm-lang/core" = {
15− version = "4.0.0";
16− sha256 = "04qgzgv90qyhjk55yw4szy50h2dqdlm0a2padbgn02yf4bb1b4nw";
17− };
1814 "elm-lang/svg" = {
1915 version = "1.0.0";
2016 sha256 = "0c29y6c58x2sq1bl29z1hr5gi2rlza8clk7ssgzmsf4xbvcczbjx";
2117 };
18+ "elm-lang/core" = {
19+ version = "4.0.0";
20+ sha256 = "04qgzgv90qyhjk55yw4szy50h2dqdlm0a2padbgn02yf4bb1b4nw";
21+ };
2222}
pkgs/development/compilers/elm/update-elm.rb+6−6
@@ -1,12 +1,12 @@
11#!/usr/bin/env ruby
22
33# Take those from https://github.com/elm-lang/elm-platform/blob/master/installers/BuildFromSource.hs
4−$elm_version = "0.16.0"
5−$elm_packages = { "elm-compiler" => "0.16",
6− "elm-package" => "0.16",
7− "elm-make" => "0.16",
8− "elm-reactor" => "0.16",
9− "elm-repl" => "0.16"
4+$elm_version = "0.17"
5+$elm_packages = { "elm-compiler" => "0.17",
6+ "elm-package" => "0.17",
7+ "elm-make" => "0.17",
8+ "elm-reactor" => "0.17",
9+ "elm-repl" => "0.17"
1010 }
1111
1212for pkg, ver in $elm_packages