lol

update julia-0.3.6 -> julia-0.3.9

Includes a workaround for the test suite suggested by
upstream (https://github.com/JuliaLang/julia/commit/b192bf0e2f0a0c5b232c3352c6e996e5f11053f2#commitcomment-11139348)
for a buggy system wcwidth.

+28 -2
+4 -2
pkgs/development/compilers/julia/0.3.nix
··· 11 11 in 12 12 stdenv.mkDerivation rec { 13 13 pname = "julia"; 14 - version = "0.3.6"; 14 + version = "0.3.9"; 15 15 name = "${pname}-${version}"; 16 16 17 17 src = fetchgit { 18 18 url = "git://github.com/JuliaLang/julia.git"; 19 19 rev = "refs/tags/v${version}"; 20 - md5 = "d28e8f428485219f756d80c011d5dd32"; 20 + sha256 = "ad0820affefd04eb6fba7deb2603756974711846a251900a9202b8d2665a37cf"; 21 21 name = "julia-git-v${version}"; 22 22 }; 23 + 24 + patches = [ ./0001-work-around-buggy-wcwidth.patch ]; 23 25 24 26 extraSrcs = 25 27 let
+24
pkgs/development/compilers/julia/0001-work-around-buggy-wcwidth.patch
··· 1 + From b9070aeab0ab672ffe321089631f9afe263b0caa Mon Sep 17 00:00:00 2001 2 + From: Thomas Tuegel <ttuegel@gmail.com> 3 + Date: Thu, 4 Jun 2015 12:03:32 -0500 4 + Subject: [PATCH] work around buggy wcwidth 5 + 6 + --- 7 + test/unicode.jl | 3 ++- 8 + 1 file changed, 2 insertions(+), 1 deletion(-) 9 + 10 + diff --git a/test/unicode.jl b/test/unicode.jl 11 + index 52c3e6a..f1ef698 100644 12 + --- a/test/unicode.jl 13 + +++ b/test/unicode.jl 14 + @@ -103,5 +103,6 @@ end 15 + 16 + # handling of embedded NUL chars (#10958) 17 + @test length("\0w") == length("\0α") == 2 18 + -@test strwidth("\0w") == strwidth("\0α") == 1 19 + +@test strwidth("\0w") == charwidth('\0') + charwidth('w') 20 + +@test strwidth("\0α") == charwidth('\0') + charwidth('α') 21 + @test normalize_string("\0W", casefold=true) == "\0w" 22 + -- 23 + 2.4.1 24 +