Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating IO language to latest version
- Loading branch information
Showing
1 changed file
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
{ stdenv, fetchurl, cmake, zlib, sqlite, gmp, libffi, cairo, ncurses, | ||
freetype, mesa, libpng, libtiff, libjpeg, readline, libsndfile, libxml2, | ||
freeglut, libsamplerate, pcre, libevent, libedit, yajl, | ||
python, openssl, glfw | ||
{ stdenv, fetchFromGitHub, cmake, zlib, sqlite, gmp, libffi, cairo, | ||
ncurses, freetype, mesa, libpng, libtiff, libjpeg, readline, libsndfile, | ||
libxml2, freeglut, libsamplerate, pcre, libevent, libedit, yajl, | ||
python3, openssl, glfw, pkgconfig, libpthreadstubs, libXdmcp, libmemcached | ||
}: | ||
|
||
stdenv.mkDerivation { | ||
name = "io-2013.12.04"; | ||
src = fetchurl { | ||
url = http://github.com/stevedekorte/io/tarball/2013.12.04; | ||
name = "io-2013.12.04.tar.gz"; | ||
sha256 = "0kvwr32xdpcr32rnv301xr5l89185dsisbj4v465m68isas0gjm5"; | ||
name = "io-2015.11.11"; | ||
src = fetchFromGitHub { | ||
owner = "stevedekorte"; | ||
repo = "io"; | ||
rev = "1fc725e0a8635e2679cbb20521f4334c25273caa"; | ||
sha256 = "0ll2kd72zy8vf29sy0nnx3awk7nywpwpv21rvninjjaqkygrc0qw"; | ||
}; | ||
|
||
buildInputs = [ | ||
cmake zlib sqlite gmp libffi cairo ncurses freetype mesa | ||
libpng libtiff libjpeg readline libsndfile libxml2 | ||
cmake zlib sqlite gmp libffi cairo ncurses freetype | ||
mesa libpng libtiff libjpeg readline libsndfile libxml2 | ||
freeglut libsamplerate pcre libevent libedit yajl | ||
pkgconfig glfw openssl libpthreadstubs libXdmcp | ||
libmemcached python3 | ||
]; | ||
|
||
configurePhase='' | ||
# The Addon generation (AsyncRequest and a others checked) seems to have | ||
# trouble with building on Virtual machines. Disabling them until it | ||
# can be fully investigated. | ||
sed -ie \ | ||
"s/add_subdirectory(addons)/#add_subdirectory(addons)/g" \ | ||
CMakeLists.txt | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX="$out" .. | ||
''; | ||
|
||
installPhase='' | ||
make install | ||
''; | ||
|
||
# for gcc5; c11 inline semantics breaks the build | ||
NIX_CFLAGS_COMPILE = "-fgnu89-inline"; | ||
|
||
meta = { | ||
meta = with stdenv.lib; { | ||
description = "Io programming language"; | ||
maintainers = with stdenv.lib.maintainers; [ | ||
maintainers = with maintainers; [ | ||
raskin | ||
z77z | ||
vrthra | ||
]; | ||
platforms = stdenv.lib.platforms.linux; | ||
platforms = platforms.linux; | ||
}; | ||
} |