2017-06-29 04:11:56 +02:00
|
|
|
{ stdenv, fetchurl, autoconf, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gambit-bootstrap-${version}";
|
2018-02-27 11:00:09 +01:00
|
|
|
version = "4.8.9";
|
|
|
|
tarball_version = "v4_8_9";
|
2017-06-29 04:11:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.8/source/gambit-${tarball_version}-devel.tgz";
|
2018-02-27 11:00:09 +01:00
|
|
|
sha256 = "b7f86c794711792ca556ce41f8bc7043dffc395c01bb6d8d119bc2f454f89fbf";
|
2017-06-29 04:11:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
2017-07-08 15:58:40 +02:00
|
|
|
./configure --prefix=$out
|
2017-06-29 04:11:56 +02: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 21:32:50 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-06-29 04:11:56 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice raskin fare ];
|
|
|
|
};
|
|
|
|
}
|