diff options
author | Alexei Boronine <alexei@boronine.com> | 2016-12-16 21:53:35 +0800 |
---|---|---|
committer | Alexei Boronine <alexei@boronine.com> | 2016-12-16 21:54:30 +0800 |
commit | 0a1278a6793bee02c1e48e7b424b2a038bcc1dd9 (patch) | |
tree | 3cc66f1b7d73f54afb8c4d08d2896c329cc517f6 /pkgs/development/compilers | |
parent | 38ea64e86793342b1384a71ae07f0088d9cd891f (diff) | |
download | nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar.gz nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar.bz2 nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar.lz nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar.xz nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.tar.zst nixlib-0a1278a6793bee02c1e48e7b424b2a038bcc1dd9.zip |
haxe: 3.1.3 -> 3.2.1
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/haxe/default.nix | 8 | ||||
-rw-r--r-- | pkgs/development/compilers/haxe/haxelib-nix.patch | 34 |
2 files changed, 22 insertions, 20 deletions
diff --git a/pkgs/development/compilers/haxe/default.nix b/pkgs/development/compilers/haxe/default.nix index a2afcc773802..a4077408ef00 100644 --- a/pkgs/development/compilers/haxe/default.nix +++ b/pkgs/development/compilers/haxe/default.nix @@ -1,17 +1,17 @@ { stdenv, fetchgit, ocaml, zlib, neko, camlp4 }: stdenv.mkDerivation { - name = "haxe-3.1.3"; + name = "haxe-3.2.1"; buildInputs = [ocaml zlib neko camlp4]; src = fetchgit { url = "https://github.com/HaxeFoundation/haxe.git"; - sha256 = "0d8s9yqsqcbr2lfw4xnmg7vzgb6k1jq6hlwwaf1kmn9wxpvcc6x9"; + sha256 = "1x9ay5a2llq46fww3k07jxx8h1vfpyxb522snc6702a050ki5vz3"; fetchSubmodules = true; - # Tag 3.1.3 - rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28"; + # Tag 3.2.1 + rev = "deab4424399b520750671e51e5f5c2684e942c17"; }; prePatch = '' diff --git a/pkgs/development/compilers/haxe/haxelib-nix.patch b/pkgs/development/compilers/haxe/haxelib-nix.patch index da7e4c8dacb8..ed370e8efd12 100644 --- a/pkgs/development/compilers/haxe/haxelib-nix.patch +++ b/pkgs/development/compilers/haxe/haxelib-nix.patch @@ -1,10 +1,10 @@ -diff --git a/extra/haxelib_src/src/tools/haxelib/Main.hx b/extra/haxelib_src/src/tools/haxelib/Main.hx -index a44a785..0eb811a 100644 +diff --git a/src/tools/haxelib/Main.hx b/src/tools/haxelib/Main.hx +index dc18815..def5231 100644 --- a/extra/haxelib_src/src/tools/haxelib/Main.hx +++ b/extra/haxelib_src/src/tools/haxelib/Main.hx -@@ -996,21 +996,26 @@ class Main { +@@ -1301,21 +1301,26 @@ class Main { } - + function checkRec( prj : String, version : String, l : List<{ project : String, version : String, info : Infos }> ) { - var pdir = getRepository() + Data.safe(prj); - if( !FileSystem.exists(pdir) ) @@ -44,7 +44,7 @@ index a44a785..0eb811a 100644 var json = try File.getContent(vdir+"/"+Data.JSON) catch( e : Dynamic ) null; var inf = Data.readData(json,false); l.add({ project : prj, version : version, info: inf }); -@@ -1025,15 +1030,21 @@ class Main { +@@ -1330,15 +1335,21 @@ class Main { var a = args[argcur++].split(":"); checkRec(a[0],a[1],list); } @@ -73,10 +73,10 @@ index a44a785..0eb811a 100644 var ndir = dir + "ndll"; if( FileSystem.exists(ndir) ) { var sysdir = ndir+"/"+Sys.systemName(); -@@ -1153,21 +1164,39 @@ class Main { - print(' Path: $devPath'); +@@ -1491,23 +1502,43 @@ class Main { + ); } - + + function getNixLib(project:String):Null<String> + { + var hlibPath = Sys.getEnv("HAXELIB_PATH"); @@ -91,7 +91,7 @@ index a44a785..0eb811a 100644 + } + return null; + } -+ + function run() { - var rep = getRepository(); var project = param("Library"); @@ -103,10 +103,10 @@ index a44a785..0eb811a 100644 - pdir += "/"; - var version = temp[1] != null ? temp[1] : getCurrent(pdir); - var dev = try getDev(pdir) catch ( e : Dynamic ) null; -- var vdir = dev!=null ? dev : pdir + Data.safe(version); -- var rdir = vdir + "/run.n"; -- if( !FileSystem.exists(rdir) ) -- throw "Library "+project+" version "+version+" does not have a run script"; +- var vdir = dev != null ? dev : pdir + Data.safe(version); + + args.push(cli.cwd); ++ + var vdir = this.getNixLib(project); + if (vdir == null) { + var rep = getRepository(); @@ -121,6 +121,8 @@ index a44a785..0eb811a 100644 + if( !FileSystem.exists(rdir) ) + throw "Library "+project+" version "+version+" does not have a run script"; + } - args.push(Sys.getCwd()); - Sys.setCwd(vdir); - var cmd = "neko run.n"; + cli.cwd = vdir; +- + var callArgs = + switch try [Data.readData(File.getContent(vdir + '/haxelib.json'), false), null] catch (e:Dynamic) [null, e] { + case [null, e]: |