Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
123 lines
2.3 KiB
Nix
123 lines
2.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
zlib,
|
|
sqlite,
|
|
gmp,
|
|
libffi,
|
|
cairo,
|
|
ncurses,
|
|
freetype,
|
|
libGLU,
|
|
libGL,
|
|
libpng,
|
|
libtiff,
|
|
libjpeg,
|
|
readline,
|
|
libsndfile,
|
|
libxml2,
|
|
libglut,
|
|
libsamplerate,
|
|
pcre,
|
|
libevent,
|
|
libedit,
|
|
yajl,
|
|
python3,
|
|
openssl,
|
|
glfw,
|
|
pkg-config,
|
|
libpthreadstubs,
|
|
libXdmcp,
|
|
libmemcached,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "io";
|
|
version = "2019.05.22-alpha";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stevedekorte";
|
|
repo = "io";
|
|
tag = "2019.05.22-alpha";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-6w0JZE9H30X5j83YgSn7hG2l0LdhdRZfe/kWpx1/aoM=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "check-for-sysctl-h.patch";
|
|
url = "https://github.com/IoLanguage/io/pull/446/commits/9f3e4d87b6d4c1bf583134d55d1cf92d3464c49f.patch";
|
|
sha256 = "9f06073ac17f26c2ef6298143bdd1babe7783c228f9667622aa6c91bb7ec7fa0";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
sqlite
|
|
gmp
|
|
libffi
|
|
cairo
|
|
ncurses
|
|
freetype
|
|
libGLU
|
|
libGL
|
|
libpng
|
|
libtiff
|
|
libjpeg
|
|
readline
|
|
libsndfile
|
|
libxml2
|
|
libglut
|
|
libsamplerate
|
|
pcre
|
|
libevent
|
|
libedit
|
|
yajl
|
|
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 -i -e \
|
|
"s/add_subdirectory(addons)/#add_subdirectory(addons)/g" \
|
|
CMakeLists.txt
|
|
# Bind Libs STATIC to avoid a segfault when relinking
|
|
sed -i 's/basekit SHARED/basekit STATIC/' libs/basekit/CMakeLists.txt
|
|
sed -i 's/garbagecollector SHARED/garbagecollector STATIC/' libs/garbagecollector/CMakeLists.txt
|
|
sed -i 's/coroutine SHARED/coroutine STATIC/' libs/coroutine/CMakeLists.txt
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
$out/bin/io
|
|
$out/bin/io_static
|
|
'';
|
|
|
|
meta = {
|
|
description = "Io programming language";
|
|
homepage = "https://iolanguage.org/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
raskin
|
|
maggesi
|
|
];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|