polyml: enable libffi and gmp

Thanks, @Mic92.
This commit is contained in:
Eric Bailey 2017-06-18 11:32:18 -05:00
parent 478e88d13e
commit 6818848fac

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook }:
{ stdenv, fetchFromGitHub, autoreconfHook, gmp, libffi }:
stdenv.mkDerivation rec {
name = "polyml-${version}";
@ -8,7 +8,14 @@ stdenv.mkDerivation rec {
substituteInPlace configure.ac --replace stdc++ c++
'';
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
buildInputs = [ libffi gmp ] ++
stdenv.lib.optional stdenv.isDarwin autoreconfHook;
configureFlags = [
"--enable-shared"
"--with-system-libffi"
"--with-gmp"
];
src = fetchFromGitHub {
owner = "polyml";