ponyc: 0.2.1 -> 2016-07-26

This commit is contained in:
Ricardo M. Correia 2016-07-27 17:51:19 +02:00 committed by Moritz Ulrich
parent ef3719716d
commit 0a417845ef
3 changed files with 38 additions and 18 deletions

View file

@ -1,29 +1,35 @@
{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2 }:
{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2, coreutils }:
stdenv.mkDerivation {
name = "ponyc-0.2.1";
name = "ponyc-2016-07-26";
src = fetchFromGitHub {
owner = "CausalityLtd";
owner = "ponylang";
repo = "ponyc";
rev = "0.2.1";
sha256 = "1wmvqrj9v2kjqha9fcs10vfnhdxhc3rf67wpn36ldhs1hq0k25jy";
rev = "4eec8a9b0d9936b2a0249bd17fd7a2caac6aaa9c";
sha256 = "184x2jivp7826i60rf0dpx0a9dg5rsj56dv0cll28as4nyqfmna2";
};
buildInputs = [ llvm makeWrapper ];
makeFlags = [ "config=release" ];
doCheck = true;
checkTarget = "test";
patchPhase = ''
sed 's|/usr/lib/x86_64-linux-gnu/|${glibc.out}/lib/|g' -i src/libponyc/codegen/genexe.c
sed 's|/lib/x86_64-linux-gnu/|${stdenv.cc.cc.lib}/lib/|g' -i src/libponyc/codegen/genexe.c
'';
# Disable problematic networking tests
patches = [ ./disable-tests.patch ];
preBuild = ''
export LLVM_CONFIG=${llvm}/bin/llvm-config
'';
# Fix tests
substituteInPlace packages/process/_test.pony \
--replace "/bin/cat" "${coreutils}/bin/cat"
export LLVM_CONFIG=${llvm}/bin/llvm-config
'';
makeFlags = [ "config=release" ];
enableParallelBuilding = true;
doCheck = true;
checkTarget = "test";
preCheck = ''
export LIBRARY_PATH="$out/lib:${openssl.out}/lib:${pcre2}/lib"

View file

@ -0,0 +1,16 @@
diff --git a/packages/net/_test.pony b/packages/net/_test.pony
index d6c3e56..dc37dd9 100644
--- a/packages/net/_test.pony
+++ b/packages/net/_test.pony
@@ -7,11 +7,6 @@ actor Main is TestList
fun tag tests(test: PonyTest) =>
test(_TestReadBuffer)
test(_TestWriteBuffer)
- test(_TestBroadcast)
- ifdef not windows then
- test(_TestTCPExpect)
- test(_TestTCPWritev)
- end
class iso _TestReadBuffer is UnitTest
"""

View file

@ -5463,9 +5463,7 @@ in
stdenv = overrideCC stdenv gcc49;
};
ponyc = callPackage ../development/compilers/ponyc {
llvm = llvm_36;
};
ponyc = callPackage ../development/compilers/ponyc { };
qcmm = callPackage ../development/compilers/qcmm {
lua = lua4;