ponyc: 0.2.1 -> 2016-07-26

authored by

Ricardo M. Correia and committed by moritz.vongoewels.de 0a417845 ef371971

+37 -17
+20 -14
pkgs/development/compilers/ponyc/default.nix
··· 1 - {stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2 }: 1 + {stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2, coreutils }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "ponyc-0.2.1"; 4 + name = "ponyc-2016-07-26"; 5 5 6 6 src = fetchFromGitHub { 7 - owner = "CausalityLtd"; 7 + owner = "ponylang"; 8 8 repo = "ponyc"; 9 - rev = "0.2.1"; 10 - sha256 = "1wmvqrj9v2kjqha9fcs10vfnhdxhc3rf67wpn36ldhs1hq0k25jy"; 9 + rev = "4eec8a9b0d9936b2a0249bd17fd7a2caac6aaa9c"; 10 + sha256 = "184x2jivp7826i60rf0dpx0a9dg5rsj56dv0cll28as4nyqfmna2"; 11 11 }; 12 12 13 13 buildInputs = [ llvm makeWrapper ]; 14 14 15 - makeFlags = [ "config=release" ]; 16 - doCheck = true; 17 - checkTarget = "test"; 15 + # Disable problematic networking tests 16 + patches = [ ./disable-tests.patch ]; 18 17 19 - patchPhase = '' 20 - sed 's|/usr/lib/x86_64-linux-gnu/|${glibc.out}/lib/|g' -i src/libponyc/codegen/genexe.c 21 - sed 's|/lib/x86_64-linux-gnu/|${stdenv.cc.cc.lib}/lib/|g' -i src/libponyc/codegen/genexe.c 18 + preBuild = '' 19 + # Fix tests 20 + substituteInPlace packages/process/_test.pony \ 21 + --replace "/bin/cat" "${coreutils}/bin/cat" 22 + 23 + export LLVM_CONFIG=${llvm}/bin/llvm-config 22 24 ''; 23 25 24 - preBuild = '' 25 - export LLVM_CONFIG=${llvm}/bin/llvm-config 26 - ''; 26 + makeFlags = [ "config=release" ]; 27 + 28 + enableParallelBuilding = true; 29 + 30 + doCheck = true; 31 + 32 + checkTarget = "test"; 27 33 28 34 preCheck = '' 29 35 export LIBRARY_PATH="$out/lib:${openssl.out}/lib:${pcre2}/lib"
+16
pkgs/development/compilers/ponyc/disable-tests.patch
··· 1 + diff --git a/packages/net/_test.pony b/packages/net/_test.pony 2 + index d6c3e56..dc37dd9 100644 3 + --- a/packages/net/_test.pony 4 + +++ b/packages/net/_test.pony 5 + @@ -7,11 +7,6 @@ actor Main is TestList 6 + fun tag tests(test: PonyTest) => 7 + test(_TestReadBuffer) 8 + test(_TestWriteBuffer) 9 + - test(_TestBroadcast) 10 + - ifdef not windows then 11 + - test(_TestTCPExpect) 12 + - test(_TestTCPWritev) 13 + - end 14 + 15 + class iso _TestReadBuffer is UnitTest 16 + """
+1 -3
pkgs/top-level/all-packages.nix
··· 5463 5463 stdenv = overrideCC stdenv gcc49; 5464 5464 }; 5465 5465 5466 - ponyc = callPackage ../development/compilers/ponyc { 5467 - llvm = llvm_36; 5468 - }; 5466 + ponyc = callPackage ../development/compilers/ponyc { }; 5469 5467 5470 5468 qcmm = callPackage ../development/compilers/qcmm { 5471 5469 lua = lua4;