1{ stdenv, fetchurl, autoconf, ... }:
2
3stdenv.mkDerivation rec {
4 name = "gambit-bootstrap-${version}";
5 version = "4.9.3";
6
7 src = fetchurl {
8 url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.9/source/gambit-v4_9_3.tgz";
9 sha256 = "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk";
10 };
11
12 buildInputs = [ autoconf ];
13
14 configurePhase = ''
15 ./configure --prefix=$out
16 '';
17
18 buildPhase = ''
19 # Copy the (configured) sources now, not later, so we don't have to filter out
20 # all the intermediate build products.
21 mkdir -p $out ; cp -rp . $out/
22
23 # build the gsc-boot* compiler
24 make bootstrap
25 '';
26
27 installPhase = ''
28 cp -fa ./ $out/
29 '';
30
31 forceShare = [ "info" ];
32
33 meta = {
34 description = "Optimizing Scheme to C compiler, bootstrap step";
35 homepage = "http://gambitscheme.org";
36 license = stdenv.lib.licenses.lgpl2;
37 platforms = stdenv.lib.platforms.unix;
38 maintainers = with stdenv.lib.maintainers; [ thoughtpolice raskin fare ];
39 };
40}