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

35 lines
953 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 {
version = "unstable-2020-02-27";
git-version = "0.16-DEV-493-g1ffb74db";
src = fetchFromGitHub {
owner = "vyzo";
repo = "gerbil";
rev = "1ffb74db5ffd49b4bad751586cef5e619c891d41";
sha256 = "1szmdp8lvy5gpcwn5bpa7x383m6vywl35xa7hz9a5vs1rq4w2097";
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
}