3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/gerbil/unstable.nix

35 lines
951 B
Nix
Raw Normal View History

{ callPackage, fetchFromGitHub, gambit-unstable, gambit-support, coreutils, bash }:
2018-03-03 06:28:08 +00:00
callPackage ./build.nix rec {
version = "unstable-2020-05-17";
git-version = "0.16-1-g36a31050";
src = fetchFromGitHub {
owner = "vyzo";
repo = "gerbil";
rev = "36a31050f6c80e7e1a49dfae96a57b2ad0260698";
sha256 = "0k3fypam9qx110sjxgzxa1mdf5b631w16s9p5v37cb8ll26vqfiv";
2018-03-03 06:28:08 +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
}