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