ponyc: 0.2.1 -> 2016-07-26
This commit is contained in:
parent
ef3719716d
commit
0a417845ef
|
@ -1,29 +1,35 @@
|
||||||
{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2 }:
|
{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2, coreutils }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ponyc-0.2.1";
|
name = "ponyc-2016-07-26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "CausalityLtd";
|
owner = "ponylang";
|
||||||
repo = "ponyc";
|
repo = "ponyc";
|
||||||
rev = "0.2.1";
|
rev = "4eec8a9b0d9936b2a0249bd17fd7a2caac6aaa9c";
|
||||||
sha256 = "1wmvqrj9v2kjqha9fcs10vfnhdxhc3rf67wpn36ldhs1hq0k25jy";
|
sha256 = "184x2jivp7826i60rf0dpx0a9dg5rsj56dv0cll28as4nyqfmna2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ llvm makeWrapper ];
|
buildInputs = [ llvm makeWrapper ];
|
||||||
|
|
||||||
makeFlags = [ "config=release" ];
|
# Disable problematic networking tests
|
||||||
doCheck = true;
|
patches = [ ./disable-tests.patch ];
|
||||||
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
|
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
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 = ''
|
preCheck = ''
|
||||||
export LIBRARY_PATH="$out/lib:${openssl.out}/lib:${pcre2}/lib"
|
export LIBRARY_PATH="$out/lib:${openssl.out}/lib:${pcre2}/lib"
|
||||||
|
|
|
@ -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
|
||||||
|
"""
|
|
@ -5463,9 +5463,7 @@ in
|
||||||
stdenv = overrideCC stdenv gcc49;
|
stdenv = overrideCC stdenv gcc49;
|
||||||
};
|
};
|
||||||
|
|
||||||
ponyc = callPackage ../development/compilers/ponyc {
|
ponyc = callPackage ../development/compilers/ponyc { };
|
||||||
llvm = llvm_36;
|
|
||||||
};
|
|
||||||
|
|
||||||
qcmm = callPackage ../development/compilers/qcmm {
|
qcmm = callPackage ../development/compilers/qcmm {
|
||||||
lua = lua4;
|
lua = lua4;
|
||||||
|
|
Loading…
Reference in New Issue