nixpkgs-suyu/pkgs/development/compilers/gambit/bootstrap.nix

41 lines
1 KiB
Nix
Raw Normal View History

2019-02-08 06:06:01 +01:00
{ stdenv, fetchurl, autoconf, ... }:
stdenv.mkDerivation rec {
name = "gambit-bootstrap-${version}";
2019-02-08 06:06:01 +01:00
version = "4.9.3";
src = fetchurl {
2019-02-08 06:06:01 +01:00
url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.9/source/gambit-v4_9_3.tgz";
sha256 = "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk";
};
2018-11-21 16:19:58 +01:00
buildInputs = [ autoconf ];
configurePhase = ''
2017-07-08 15:58:40 +02:00
./configure --prefix=$out
'';
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;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice raskin fare ];
};
}