diff --git a/pkgs/development/compilers/gwydion-dylan/binary-builder.sh b/pkgs/development/compilers/gwydion-dylan/binary-builder.sh new file mode 100644 index 00000000000..7956a8a7213 --- /dev/null +++ b/pkgs/development/compilers/gwydion-dylan/binary-builder.sh @@ -0,0 +1,9 @@ +. $stdenv/setup + +set -e + +mkdir -p $out +cd $out +tar zxvf $src +mv ./usr/local/* . +rm -rf ./usr diff --git a/pkgs/development/compilers/gwydion-dylan/binary.nix b/pkgs/development/compilers/gwydion-dylan/binary.nix new file mode 100644 index 00000000000..0ac942d14b8 --- /dev/null +++ b/pkgs/development/compilers/gwydion-dylan/binary.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "binary-gwydion-dylan-2.4.0"; + builder = ./binary-builder.sh; + src = fetchurl { + url = http://www.gwydiondylan.org/downloads/binaries/linux/x86/tar/gwydion-dylan-2.4.0-x86-linux.tar.gz; + md5 = "52643ad51a455d21fd4d5bf82d98914c"; + }; +} diff --git a/pkgs/development/compilers/gwydion-dylan/builder.sh b/pkgs/development/compilers/gwydion-dylan/builder.sh new file mode 100644 index 00000000000..23c63da9198 --- /dev/null +++ b/pkgs/development/compilers/gwydion-dylan/builder.sh @@ -0,0 +1,8 @@ +. $stdenv/setup + +export DYLANDIR=$dylan +export DYLANPATH=$dylan/lib/dylan/2.4.0/x86-linux-gcc +configureFlags="--with-existing-runtime=$dylan/lib/dylan/2.4.0/x86-linux-gcc" +export LD_LIBRARY_PATH="$dylan/lib/dylan/2.4.0/x86-linux-gcc:$LD_LIBRARY_PATH:$boehmgc/lib" + +genericBuild diff --git a/pkgs/development/compilers/gwydion-dylan/default.nix b/pkgs/development/compilers/gwydion-dylan/default.nix new file mode 100644 index 00000000000..7c00e65d7cc --- /dev/null +++ b/pkgs/development/compilers/gwydion-dylan/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, dylan, boehmgc, perl, flex, yacc, readline}: + +stdenv.mkDerivation { + name = "gwydion-dylan-2.4.0"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.gwydiondylan.org/downloads/src/tar/gwydion-dylan-2.4.0.tar.gz; + md5 = "7ed180bf4ef11e8e8da3bd78b45477a8"; + }; + + inherit boehmgc dylan perl; + buildInputs = [boehmgc dylan perl flex yacc readline]; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 7fe99c963b1..3364e84a5bb 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -444,6 +444,14 @@ rec { inherit fetchurl stdenv zlib; }; + dylan = (import ../development/compilers/gwydion-dylan) { + inherit fetchurl stdenv perl boehmgc yacc flex readline; + dylan = + (import ../development/compilers/gwydion-dylan/binary.nix) { + inherit fetchurl stdenv; + }; + }; + clisp = (import ../development/interpreters/clisp) { inherit fetchurl stdenv libsigsegv gettext; }; @@ -679,6 +687,9 @@ rec { inherit fetchurl stdenv x11; }; + boehmgc = (import ../development/libraries/boehm-gc) { + inherit fetchurl stdenv; + }; ### SERVERS