mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
f16d3800e1
io uses SIMD instructions even on i686, causing the build to fail: > /nix/store/[...]-gcc-5.4.0/lib/gcc/i686-pc-linux-gnu/5.4.0/include/xmmintrin.h:181:1: error: inlining failed in call to always_inline '_mm_add_ps': target specific option mismatch _mm_add_ps (__m128 __A, __m128 __B) (from https://hydra.nixos.org/build/37879114/log/raw) The simplest solution is to disable the build on this platform.
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{ 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-2015.11.11";
|
|
src = fetchFromGitHub {
|
|
owner = "stevedekorte";
|
|
repo = "io";
|
|
rev = "1fc725e0a8635e2679cbb20521f4334c25273caa";
|
|
sha256 = "0ll2kd72zy8vf29sy0nnx3awk7nywpwpv21rvninjjaqkygrc0qw";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
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
|
|
];
|
|
|
|
preConfigure = ''
|
|
# 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
|
|
'';
|
|
|
|
# for gcc5; c11 inline semantics breaks the build
|
|
NIX_CFLAGS_COMPILE = "-fgnu89-inline";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Io programming language";
|
|
homepage = http://iolanguage.org/;
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [
|
|
raskin
|
|
z77z
|
|
vrthra
|
|
];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|