@@ -1,15 +1,22 @@
1−{ stdenv, fetchurl, fetchgit, gambit, openssl, zlib, coreutils, rsync, bash }:
1+{ stdenv, fetchurl, fetchgit, gambit,
2+ coreutils, rsync, bash,
3+ openssl, zlib, sqlite, libxml2, libyaml, libmysql, lmdb, leveldb }:
24
35stdenv.mkDerivation rec {
46 name = "gerbil-${version}";
57
6− version = "0.11";
7− src = fetchurl {
8− url = "https://github.com/vyzo/gerbil/archive/v${version}.tar.gz";
9− sha256 = "0mqg6cqdcf5qr7vk79x5zkls7z2wm8i3lhwn0b7i0g1m6yyyyff7";
8+ version = "0.12-DEV";
9+ src = fetchgit {
10+ url = "https://github.com/vyzo/gerbil.git";
11+ rev = "3657b6e940ea248e0b312f276590e38ff68997e7";
12+ sha256 = "11ys7082ghkm4yikz4qxmv3jpxcr42jfi0jhjw1mpzbqdg6004w2";
1013 };
1114
12− buildInputs = [ gambit openssl zlib coreutils rsync bash ];
15+ buildInputs = [
16+ gambit openssl
17+ coreutils rsync bash
18+ zlib openssl zlib sqlite libxml2 libyaml libmysql lmdb leveldb
19+ ];
1320
1421 postPatch = ''
1522 patchShebangs .
@@ -21,7 +28,13 @@ stdenv.mkDerivation rec {
2128
2229 buildPhase = ''
2330 runHook preBuild
31+
32+ # Enable all optional libraries
33+ substituteInPlace "src/std/build-features.ss" --replace '#f' '#t'
34+
35+ # Build, replacing make by build.sh
2436 ( cd src && sh build.sh )
37+
2538 runHook postBuild
2639 '';
2740