git.iko.soy/typeable/nixpkgs
on master help sign in
ponyc: 0.2.1 -> 2016-07-26
commit0a417845ef00c6964dd2ecf040055bfc3dc7f1f1 authorRicardo M. Correia <rcorreia@wizy.org> dateWed 27 Jul 2016, 17:51 (10 years ago) parentef37197
3 files changed+37−17
pkgs/development/compilers/ponyc/default.nix+20−14 pkgs/development/compilers/ponyc/disable-tests.patch+16 pkgs/top-level/all-packages.nix+1−3
pkgs/development/compilers/ponyc/default.nix+20−14
@@ -1,29 +1,35 @@
1−{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2 }:
1+{stdenv, glibc, fetchFromGitHub, llvm, makeWrapper, openssl, pcre2, coreutils }:
22
33stdenv.mkDerivation {
4− name = "ponyc-0.2.1";
4+ name = "ponyc-2016-07-26";
55
66 src = fetchFromGitHub {
7− owner = "CausalityLtd";
7+ owner = "ponylang";
88 repo = "ponyc";
9− rev = "0.2.1";
10− sha256 = "1wmvqrj9v2kjqha9fcs10vfnhdxhc3rf67wpn36ldhs1hq0k25jy";
9+ rev = "4eec8a9b0d9936b2a0249bd17fd7a2caac6aaa9c";
10+ sha256 = "184x2jivp7826i60rf0dpx0a9dg5rsj56dv0cll28as4nyqfmna2";
1111 };
1212
1313 buildInputs = [ llvm makeWrapper ];
1414
15− makeFlags = [ "config=release" ];
16− doCheck = true;
17− checkTarget = "test";
15+ # Disable problematic networking tests
16+ patches = [ ./disable-tests.patch ];
1817
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
2224 '';
2325
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";
2733
2834 preCheck = ''
2935 export LIBRARY_PATH="$out/lib:${openssl.out}/lib:${pcre2}/lib"
pkgs/development/compilers/ponyc/disable-tests.patchnew file+16
@@ -0,0 +1,16 @@
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+ """
pkgs/top-level/all-packages.nix+1−3
@@ -5463,9 +5463,7 @@ in
54635463 stdenv = overrideCC stdenv gcc49;
54645464 };
54655465
5466− ponyc = callPackage ../development/compilers/ponyc {
5467− llvm = llvm_36;
5468− };
5466+ ponyc = callPackage ../development/compilers/ponyc { };
54695467
54705468 qcmm = callPackage ../development/compilers/qcmm {
54715469 lua = lua4;