2020-03-21 04:53:33 +00:00
|
|
|
{ callPackage, fetchFromGitHub, gambit-unstable, gambit-support, coreutils, bash }:
|
2018-03-03 06:28:08 +00:00
|
|
|
|
2020-05-07 22:22:24 +01:00
|
|
|
callPackage ./build.nix rec {
|
|
|
|
version = "unstable-2020-05-17";
|
|
|
|
git-version = "0.16-1-g36a31050";
|
2018-11-18 03:55:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vyzo";
|
|
|
|
repo = "gerbil";
|
2020-05-07 22:22:24 +01:00
|
|
|
rev = "36a31050f6c80e7e1a49dfae96a57b2ad0260698";
|
|
|
|
sha256 = "0k3fypam9qx110sjxgzxa1mdf5b631w16s9p5v37cb8ll26vqfiv";
|
2018-03-03 06:28:08 +00:00
|
|
|
};
|
2020-03-21 04:53:33 +00:00
|
|
|
inherit gambit-support;
|
|
|
|
gambit = gambit-unstable;
|
|
|
|
gambit-params = gambit-support.unstable-params;
|
|
|
|
configurePhase = ''
|
|
|
|
(cd src && ./configure \
|
|
|
|
--prefix=$out/gerbil \
|
|
|
|
--with-gambit=${gambit}/gambit \
|
|
|
|
--enable-libxml \
|
|
|
|
--enable-libyaml \
|
|
|
|
--enable-zlib \
|
|
|
|
--enable-sqlite \
|
|
|
|
--enable-mysql \
|
|
|
|
--enable-lmdb \
|
|
|
|
--enable-leveldb)
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/gerbil $out/bin
|
|
|
|
(cd src; ./install)
|
|
|
|
(cd $out/bin ; ln -s ../gerbil/bin/* .)
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2018-03-03 06:28:08 +00:00
|
|
|
}
|