2020-02-16 00:26:35 +00:00
|
|
|
{ stdenv, fetchurl, autoconf, gcc, coreutils, ... }:
|
2017-06-29 02:11:56 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gambit-bootstrap";
|
2019-02-08 05:06:01 +00:00
|
|
|
version = "4.9.3";
|
2017-06-29 02:11:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-08 05:06:01 +00:00
|
|
|
url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.9/source/gambit-v4_9_3.tgz";
|
|
|
|
sha256 = "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk";
|
2017-06-29 02:11:56 +00:00
|
|
|
};
|
|
|
|
|
2018-11-21 15:19:58 +00:00
|
|
|
buildInputs = [ autoconf ];
|
2017-06-29 02:11:56 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
2020-02-16 00:26:35 +00:00
|
|
|
export CC=${gcc}/bin/gcc CXX=${gcc}/bin/g++ \
|
|
|
|
CPP=${gcc}/bin/cpp CXXCPP=${gcc}/bin/cpp LD=${gcc}/bin/ld \
|
|
|
|
XMKMF=${coreutils}/bin/false
|
|
|
|
unset CFLAGS LDFLAGS LIBS CPPFLAGS CXXFLAGS
|
2017-07-08 13:58:40 +00:00
|
|
|
./configure --prefix=$out
|
2017-06-29 02:11:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
# Copy the (configured) sources now, not later, so we don't have to filter out
|
|
|
|
# all the intermediate build products.
|
|
|
|
mkdir -p $out ; cp -rp . $out/
|
|
|
|
|
|
|
|
# build the gsc-boot* compiler
|
|
|
|
make bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -fa ./ $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
forceShare = [ "info" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Optimizing Scheme to C compiler, bootstrap step";
|
|
|
|
homepage = "http://gambitscheme.org";
|
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2018-03-26 19:32:50 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-06-29 02:11:56 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice raskin fare ];
|
|
|
|
};
|
|
|
|
}
|