at 18.03-beta 38 lines 1.3 kB view raw
1# Build Open Dylan from source using the binary builds to bootstrap. 2{stdenv, fetchgit, boehmgc, mps, gnused, opendylan-bootstrap, autoconf, automake, perl, makeWrapper, gcc }: 3 4stdenv.mkDerivation { 5 name = "opendylan-2013.2"; 6 7 src = fetchgit { 8 url = https://github.com/dylan-lang/opendylan; 9 rev = "ce9b14dab6cb9ffedc69fae8c6df524c0c79abd3"; 10 sha256 = "17jvhv0y63fj25ma05k70b7phcwgjyna5qkrirk48z3xapb8bknd"; 11 fetchSubmodules = true; 12 }; 13 14 buildInputs = (if stdenv.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [ 15 opendylan-bootstrap boehmgc gnused autoconf automake perl makeWrapper 16 ] ; 17 18 preConfigure = if stdenv.system == "i686-linux" then '' 19 mkdir -p $TMPDIR/mps 20 tar --strip-components=1 -xf ${mps.src} -C $TMPDIR/mps 21 ./autogen.sh 22 '' 23 else '' 24 ./autogen.sh 25 ''; 26 27 configureFlags = if stdenv.system == "i686-linux" then "--with-mps=$(TMPDIR)/mps" else "--with-gc=${boehmgc.out}"; 28 buildPhase = "make 3-stage-bootstrap"; 29 30 postInstall = "wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin"; 31 32 meta = { 33 homepage = http://opendylan.org; 34 description = "A multi-paradigm functional and object-oriented programming language"; 35 license = stdenv.lib.licenses.mit; 36 platforms = stdenv.lib.platforms.linux; 37 }; 38}