2014-10-25 03:58:41 +01:00
|
|
|
{ fetchurl, stdenv, gmp }:
|
2008-02-08 01:35:01 +00:00
|
|
|
|
2008-04-02 21:54:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bigloo";
|
2014-10-25 03:58:41 +01:00
|
|
|
version = "4.1a-2";
|
2008-02-08 01:35:01 +00:00
|
|
|
|
2008-04-02 21:54:42 +01:00
|
|
|
src = fetchurl {
|
2013-06-07 10:18:33 +01:00
|
|
|
url = "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo${version}.tar.gz";
|
2014-10-25 03:58:41 +01:00
|
|
|
sha256 = "09yrz8r0jpj7bda39fdxzrrdyhi851nlfajsyf0b6jxanz6ygcjx";
|
2008-04-02 21:54:42 +01:00
|
|
|
};
|
2008-03-11 10:08:19 +00:00
|
|
|
|
2015-01-01 22:55:30 +00:00
|
|
|
propagatedBuildInputs = [ gmp ];
|
2014-10-25 03:58:41 +01:00
|
|
|
|
2011-10-05 22:51:07 +01:00
|
|
|
preConfigure =
|
|
|
|
# Help libgc's configure.
|
2014-12-17 18:11:30 +00:00
|
|
|
'' export CXXCPP="$CXX -E"
|
2011-10-05 22:51:07 +01:00
|
|
|
'';
|
|
|
|
|
2008-04-02 21:54:42 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# Fix absolute paths.
|
|
|
|
sed -e 's=/bin/mv=mv=g' -e 's=/bin/rm=rm=g' \
|
2015-01-01 22:55:30 +00:00
|
|
|
-e 's=/tmp=$TMPDIR=g' -i autoconf/* \
|
2008-04-02 21:54:42 +01:00
|
|
|
[Mm]akefile* */[Mm]akefile* */*/[Mm]akefile* \
|
|
|
|
*/*/*/[Mm]akefile* */*/*/*/[Mm]akefile* \
|
2011-10-05 22:51:07 +01:00
|
|
|
comptime/Cc/cc.scm gc/install-*
|
2008-04-02 21:54:42 +01:00
|
|
|
|
|
|
|
# Make sure we don't change string lengths in the generated
|
|
|
|
# C files.
|
|
|
|
sed -e 's=/bin/rm= rm=g' -e 's=/bin/mv= mv=g' \
|
|
|
|
-i comptime/Cc/cc.c
|
|
|
|
'';
|
|
|
|
|
2008-05-29 13:10:10 +01:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2017-05-16 15:35:52 +01:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = ''rm -rf "$(pwd)" '';
|
|
|
|
|
2011-10-05 22:51:07 +01:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Efficient Scheme compiler";
|
2014-10-25 03:58:41 +01:00
|
|
|
homepage = http://www-sop.inria.fr/indes/fp/Bigloo/;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
2008-04-02 21:54:42 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Bigloo is a Scheme implementation devoted to one goal: enabling
|
|
|
|
Scheme based programming style where C(++) is usually
|
|
|
|
required. Bigloo attempts to make Scheme practical by offering
|
|
|
|
features usually presented by traditional programming languages
|
|
|
|
but not offered by Scheme and functional programming. Bigloo
|
|
|
|
compiles Scheme modules. It delivers small and fast stand alone
|
|
|
|
binary executables. Bigloo enables full connections between
|
|
|
|
Scheme and C programs, between Scheme and Java programs, and
|
|
|
|
between Scheme and C# programs.
|
|
|
|
'';
|
2008-02-08 01:35:01 +00:00
|
|
|
};
|
2008-04-02 21:54:42 +01:00
|
|
|
}
|