1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, zlib, sqlite, gmp, libffi, cairo,
2 ncurses, freetype, libGLU, libGL, libpng, libtiff, libjpeg, readline, libsndfile,
3 libxml2, freeglut, libsamplerate, pcre, libevent, libedit, yajl,
4 python3, openssl, glfw, pkg-config, libpthreadstubs, libXdmcp, libmemcached
9 version = "2017.09.06";
10 src = fetchFromGitHub {
11 owner = "stevedekorte";
13 rev = "b8a18fc199758ed09cd2f199a9bc821f6821072a";
14 sha256 = "07rg1zrz6i6ghp11cm14w7bbaaa1s8sb0y5i7gr2sds0ijlpq223";
19 name = "check-for-sysctl-h.patch";
20 url = "https://github.com/IoLanguage/io/pull/446/commits/9f3e4d87b6d4c1bf583134d55d1cf92d3464c49f.patch";
21 sha256 = "9f06073ac17f26c2ef6298143bdd1babe7783c228f9667622aa6c91bb7ec7fa0";
31 zlib sqlite gmp libffi cairo ncurses freetype
32 libGLU libGL libpng libtiff libjpeg readline libsndfile libxml2
33 freeglut libsamplerate pcre libevent libedit yajl
34 glfw openssl libpthreadstubs libXdmcp
39 # The Addon generation (AsyncRequest and a others checked) seems to have
40 # trouble with building on Virtual machines. Disabling them until it
41 # can be fully investigated.
43 "s/add_subdirectory(addons)/#add_subdirectory(addons)/g" \
45 # Bind Libs STATIC to avoid a segfault when relinking
46 sed -i 's/basekit SHARED/basekit STATIC/' libs/basekit/CMakeLists.txt
47 sed -i 's/garbagecollector SHARED/garbagecollector STATIC/' libs/garbagecollector/CMakeLists.txt
48 sed -i 's/coroutine SHARED/coroutine STATIC/' libs/coroutine/CMakeLists.txt
51 doInstallCheck = true;
53 installCheckPhase = ''
58 # for gcc5; c11 inline semantics breaks the build
59 NIX_CFLAGS_COMPILE = "-fgnu89-inline";
62 description = "Io programming language";
63 homepage = "https://iolanguage.org/";
64 license = licenses.bsd3;
66 maintainers = with maintainers; [
71 platforms = [ "x86_64-linux" ];