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