fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1# Build Open Dylan from source using the binary builds to bootstrap.
2{lib, stdenv, fetchgit, boehmgc, mps, gnused, opendylan-bootstrap, autoconf, automake, perl, makeWrapper, gcc }:
3
4stdenv.mkDerivation {
5 pname = "opendylan";
6 version = "2016.1pre";
7
8 src = fetchgit {
9 url = "https://github.com/dylan-lang/opendylan";
10 rev = "cd9a8395586d33cc43a8611c1dc0513e69ee82dd";
11 sha256 = "00r1dm7mjy5p4hfm13vc4b6qryap40zinia3y15rhvalc3i2np4b";
12 fetchSubmodules = true;
13 };
14
15 buildInputs = (if stdenv.hostPlatform.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [
16 opendylan-bootstrap boehmgc gnused autoconf automake perl makeWrapper
17 ];
18
19 preConfigure = if stdenv.hostPlatform.system == "i686-linux" then ''
20 mkdir -p $TMPDIR/mps
21 tar --strip-components=1 -xf ${mps.src} -C $TMPDIR/mps
22 ./autogen.sh
23 ''
24 else ''
25 ./autogen.sh
26 '';
27
28 configureFlags = [
29 (if stdenv.hostPlatform.system == "i686-linux" then "--with-mps=$(TMPDIR)/mps" else "--with-gc=${boehmgc.out}")
30 ];
31 buildPhase = "make 3-stage-bootstrap";
32
33 postInstall = "wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin";
34
35 meta = {
36 homepage = "https://opendylan.org";
37 description = "A multi-paradigm functional and object-oriented programming language";
38 license = lib.licenses.mit;
39 platforms = lib.platforms.linux;
40 };
41}