2014-05-27 04:28:09 +02:00
|
|
|
# Build Open Dylan from source using the binary builds to bootstrap.
|
2016-07-06 15:16:47 +02:00
|
|
|
{stdenv, fetchgit, boehmgc, mps, gnused, opendylan-bootstrap, autoconf, automake, perl, makeWrapper, gcc }:
|
2014-05-27 04:28:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-03-22 08:58:16 +01:00
|
|
|
name = "opendylan-2016.1pre";
|
2014-05-27 04:28:09 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/dylan-lang/opendylan";
|
2018-03-22 08:58:16 +01:00
|
|
|
rev = "cd9a8395586d33cc43a8611c1dc0513e69ee82dd";
|
|
|
|
sha256 = "00r1dm7mjy5p4hfm13vc4b6qryap40zinia3y15rhvalc3i2np4b";
|
2014-05-27 04:28:09 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2018-08-20 21:11:29 +02:00
|
|
|
buildInputs = (if stdenv.hostPlatform.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [
|
2014-05-27 04:28:09 +02:00
|
|
|
opendylan-bootstrap boehmgc gnused autoconf automake perl makeWrapper
|
2018-03-22 08:58:16 +01:00
|
|
|
];
|
2014-05-27 04:28:09 +02:00
|
|
|
|
2018-08-20 21:11:29 +02:00
|
|
|
preConfigure = if stdenv.hostPlatform.system == "i686-linux" then ''
|
2014-05-27 04:28:09 +02:00
|
|
|
mkdir -p $TMPDIR/mps
|
|
|
|
tar --strip-components=1 -xf ${mps.src} -C $TMPDIR/mps
|
|
|
|
./autogen.sh
|
|
|
|
''
|
|
|
|
else ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2018-08-03 18:52:40 +02:00
|
|
|
configureFlags = [
|
2018-08-20 21:11:29 +02:00
|
|
|
(if stdenv.hostPlatform.system == "i686-linux" then "--with-mps=$(TMPDIR)/mps" else "--with-gc=${boehmgc.out}")
|
2018-08-03 18:52:40 +02:00
|
|
|
];
|
2014-05-27 04:28:09 +02:00
|
|
|
buildPhase = "make 3-stage-bootstrap";
|
|
|
|
|
|
|
|
postInstall = "wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin";
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://opendylan.org";
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A multi-paradigm functional and object-oriented programming language";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2016-07-06 15:16:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-05-27 04:28:09 +02:00
|
|
|
};
|
|
|
|
}
|