diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-02-08 01:35:01 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-02-08 01:35:01 +0000 |
commit | 9e0cfbdfdd7d68020997288053b5776d2d61468e (patch) | |
tree | 71faab3c8c4a1c682511cf8aff83b8bfa06e45d1 | |
parent | 4c59a67b32dc7d20205d9e260b0b5faefdbda40c (diff) | |
download | nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar.gz nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar.bz2 nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar.lz nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar.xz nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.tar.zst nixlib-9e0cfbdfdd7d68020997288053b5776d2d61468e.zip |
bigloo is now compiling
svn path=/nixpkgs/trunk/; revision=10549
-rw-r--r-- | pkgs/development/compilers/bigloo/default.nix | 130 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 135 insertions, 0 deletions
diff --git a/pkgs/development/compilers/bigloo/default.nix b/pkgs/development/compilers/bigloo/default.nix new file mode 100644 index 000000000000..2fb0b7c2276b --- /dev/null +++ b/pkgs/development/compilers/bigloo/default.nix @@ -0,0 +1,130 @@ +args: +( args.mkDerivationByConfiguration { + flagConfig = { + /* +Bigloo compiler: + --native=yes|no [default yes] + --jvm=yes|no|force [default no] + --dotnet=yes|no|force [default no] + --customgc=yes|no [default yes] + --bee=partial|full [default partial] + +API: + --enable-[calendar|fthread|mail|multimedia|pkgcomp|pkglib|pthread|sqlite|srfi1|ssl|web] + --disable-[calendar|fthread|mail|multimedia|pkgcomp|pkglib|pthread|sqlite|srfi1|ssl|web] + +Path: + --prefix=dir (sets bin, lib, zip, man, info and doc dirs) + --bindir=file + --libdir=file + --gcdir=dir (directory for non custom gc library) + --fildir=file + --zipdir=file + --dlldir=file + --mandir=file + --infodir=file + --docdir=file + --tmpdir=file (Bigloo tmp dir) + --tmp=file (Installation tmp dir) + --lispdir=file + +Tools and compilers: + --bigloo=comp [default bigloo] + --cc=comp [default gcc] + --ld=comp [default gcc] + --as=asm + --cflags=compilation flags + --lflags=compiler link flags + --coflags=optimization_flags + --cpicflags=pic_flags + --ldlibs=ld_libs + --ldcomplibs=ld_compiler_libs + --ldflags=ld_flags + --emacs=file + --xemacs=file (deprecated, use "--emacs" option) + --indent=file + --icc (configure for icc) + +Host configuration: + --arch=[i586|i686|athlon|athlon-tbird|athlon-mp|athlon-xp|k6-2|k6-3|pentium3|pentium4] (configure for specified hardware) + --a.out=file + --a.bat=file + --dirname=file-or-command + --force-posixos=operating-system + --os-win32 + --os-macosx (tune for MacOSX) + --no-os-macosx (disable MacOSX auto configuration) + --cygwin-dos-path=[dos path] + --cygwin-dos-jvm=yes|no [default yes] + --no-share (disable shared libraries support) + --no-ldpreload + --sharedbde=yes|no [default no] (link Bde tools against shared libraries) + --sharedcompiler=yes|no [default no] (link Bigloo against shared libraries) + +JVM configuration: + --java=file + --javac=file + --javaprefix=dir + --javashell=shell [should be sh or msdos (default sh)] + --native-default-backend + --jvm-default-backend + +.NET configuration: + --pnet (configure for GNU pnet) + --mono (configure for Ximian Mono) + --dotnetldstyle=style [should be pnet, mono] + --dotnetcsccstyle=style [should be pnet, mono] + --dotnetclrstyle=style [should be pnet, mono] + --dotnetcscc=file + --dotnetld=file + --dotnetclr=file + --dotnetclropt=options + --dotnetshell=shell [should be sh or msdos (default sh)] + --dotnetasm=asm [optional] + +Misc: + --finalization=yes|no [default no] + --benchmark=yes|no [default no] (must use --arch too) + --stack-check=no + +Configuration settings: + --bigloo.h[=file] + --bigloo_gc.h[=file] + --bigloo_config.h[=file] + --bigloo_config.jvm[=file] + --Makefile.config=file + --configure.log=file + --no-summary + --bootconfig + --bootdir=dir + --configureinfo=yes|no [default no] + + */ + + }; + + extraAttrs = co : rec { + name = "bigloo3.0d-alpha05Feb08"; # Thanks to Manuel Serrano for fixing the mv trouble + + # take care, modifying generated C-Code (altering string and length of string) + preConfigure = + "sed -i -e 's=/bin/rm -f \", 14=rm -f \", 9=' " + + " -e 's=/bin/mv \", 11=mv \", 6=' " + + "comptime/Cc/cc.c\n" + + "sed -i -e 's=/bin/rm=rm=' " + + " -e 's=/bin/mv=mv=' " + + "configure gc/install-gc-*"; + + src = args.fetchurl { + url = "ftp://ftp-sop.inria.fr/mimosa/fp/Bigloo/${name}.tar.gz"; + sha256 = "03rknb1nl3z2f86k6iazbrapmli2m8lcs21lqrri8ys8s72dm33w"; + }; + + meta = { + description = "scheme -> C / Java compiler (.net experimental)"; + homepage = http://www-sop.inria.fr/mimosa/fp/Bigloo/; + # you can choose one of the following licenses: + license = ["GPL"]; + }; + }; +} ) args diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2e2a984a3073..e6e8be4a0ddb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -977,6 +977,11 @@ rec { inherit stdenv fetchurl jre; }; + bigloo = import ../development/compilers/bigloo { + inherit fetchurl mkDerivationByConfiguration lib; + stdenv = overrideGCC stdenv gcc34; + }; + dylan = import ../development/compilers/gwydion-dylan { inherit fetchurl stdenv perl boehmgc yacc flex readline; dylan = |