git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29721 from fare-patches/master

Update gambit and gerbil scheme

commit5791307189a37fa24b02cc2bdc10a181568e477e authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 24 Sep 2017, 14:17 (9 years ago) parent83ff400fc82bad
3 files changed+25−22
pkgs/development/compilers/gambit/bootstrap.nix+1−1 pkgs/development/compilers/gambit/default.nix+15−16 pkgs/development/compilers/gerbil/default.nix+9−5
pkgs/development/compilers/gambit/bootstrap.nix+1−1
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 buildInputs = [ autoconf ];
1414
1515 configurePhase = ''
16− ./configure --prefix=$out --enable-single-host
16+ ./configure --prefix=$out
1717 '';
1818
1919 buildPhase = ''
pkgs/development/compilers/gambit/default.nix+15−16
@@ -1,19 +1,16 @@
11{ stdenv, fetchurl, fetchgit, git, openssl, autoconf, pkgs }:
22
3+# TODO: distinct packages for gambit-release and gambit-devel
4+
35stdenv.mkDerivation rec {
46 name = "gambit-${version}";
5− version = "4.8.8-f3ffeb6";
7+ version = "4.8.8-300db59";
68 bootstrap = import ./bootstrap.nix ( pkgs );
79
8−# devver = "4_8_8";
9−# src = fetchurl {
10−# url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.8/source/gambit-v${version}-devel.tgz";
11−# sha256 = "0j3ka76cfb007rlcc3nv5p1s6vh31cwp87hwwabawf16vs1jb7bl";
12−# };
1310 src = fetchgit {
1411 url = "https://github.com/feeley/gambit.git";
15− rev = "f3ffeb695aeea80c18c1b9ef276b57898c780dca";
16− sha256 = "1lqixsrgk9z2gj6z1nkys0pfd3m5zjxrp3gvqn2wpr9h7hjb8x06";
12+ rev = "300db59e1d3b66bcd597f617849df0274d2a4472";
13+ sha256 = "1mhy49lasakgvdaswkxasdssik11lx3hfx4h1gs2b6881488ssdp";
1714 };
1815
1916 buildInputs = [ openssl git autoconf bootstrap ];
@@ -28,6 +25,8 @@ stdenv.mkDerivation rec {
2825 --enable-absolute-shared-libs # Yes, NixOS will want an absolute path, and fix it.
2926 --enable-poll
3027 --enable-openssl
28+ --enable-default-runtime-options="f8,-8,t8" # Default to UTF-8 for source and all I/O
29+ #--enable-debug # Nope: enables plenty of good stuff, but also the costly console.log
3130
3231 #--enable-multiple-versions # Nope, NixOS already does version multiplexing
3332 #--enable-guide
@@ -49,15 +48,15 @@ stdenv.mkDerivation rec {
4948
5049 buildPhase = ''
5150 # Make bootstrap compiler, from release bootstrap
52− mkdir -p boot/wip-compiler &&
53− cp -rp ${bootstrap}/. boot/wip-compiler/. &&
51+ mkdir -p boot &&
52+ cp -rp ${bootstrap}/. boot/. &&
5453 chmod -R u+w boot &&
55− cd boot/wip-compiler && \
56− cp ../../gsc/makefile.in ../../gsc/*.scm gsc && \
57− (cd gsc && make bootclean ) &&
58− make bootstrap &&
59− cd ../.. &&
60− cp boot/wip-compiler/gsc/gsc gsc-boot &&
54+ cd boot &&
55+ cp ../gsc/makefile.in ../gsc/*.scm gsc && # */
56+ ./configure &&
57+ for i in lib gsi gsc ; do (cd $i ; make ) ; done &&
58+ cd .. &&
59+ cp boot/gsc/gsc gsc-boot &&
6160
6261 # Now use the bootstrap compiler to build the real thing!
6362 make -j2 from-scratch
pkgs/development/compilers/gerbil/default.nix+9−5
@@ -2,23 +2,27 @@
22 coreutils, rsync, bash,
33 openssl, zlib, sqlite, libxml2, libyaml, libmysql, lmdb, leveldb }:
44
5+# TODO: distinct packages for gerbil-release and gerbil-devel
6+
57stdenv.mkDerivation rec {
68 name = "gerbil-${version}";
79
8− version = "0.12-DEV";
10+ version = "0.12-DEV-777-gd855915";
911 src = fetchgit {
1012 url = "https://github.com/vyzo/gerbil.git";
11− rev = "3657b6e940ea248e0b312f276590e38ff68997e7";
12− sha256 = "11ys7082ghkm4yikz4qxmv3jpxcr42jfi0jhjw1mpzbqdg6004w2";
13+ rev = "9db6187dc996eec4087f83b86339e7b17bb69bad";
14+ sha256 = "1hqmsy77d62dvil3az4vdr0rmwvxhinjl1dbcxzamz2c2kcjv1jg";
1315 };
1416
1517 buildInputs = [
16− gambit openssl
18+ gambit
1719 coreutils rsync bash
18− zlib openssl zlib sqlite libxml2 libyaml libmysql lmdb leveldb
20+ openssl zlib sqlite libxml2 libyaml libmysql lmdb leveldb
1921 ];
2022
2123 postPatch = ''
24+ echo '(define (gerbil-version-string) "v${version}")' > src/gerbil/runtime/gx-version.scm
25+
2226 patchShebangs .
2327
2428 find . -type f -executable -print0 | while IFS= read -r -d ''$'\0' f; do