2011-01-18 18:36:25 +01:00
|
|
|
{builderDefsPackage
|
|
|
|
, gmp, mpfr, libffi
|
|
|
|
, ...} @ x:
|
|
|
|
builderDefsPackage (a :
|
2010-01-20 06:40:46 +01:00
|
|
|
let
|
|
|
|
s = import ./src-for-default.nix;
|
2010-02-23 22:32:16 +01:00
|
|
|
propagatedBuildInputs = with a; [
|
2010-01-20 06:40:46 +01:00
|
|
|
gmp mpfr
|
|
|
|
];
|
2011-05-04 14:43:31 +02:00
|
|
|
buildInputs = [ gmp libffi mpfr ];
|
2010-01-20 06:40:46 +01:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
|
|
|
|
inherit (s) name;
|
2010-02-23 22:32:16 +01:00
|
|
|
inherit buildInputs propagatedBuildInputs;
|
2010-02-09 14:54:29 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-threads"
|
2010-02-26 08:02:18 +01:00
|
|
|
]
|
|
|
|
++
|
2010-02-26 08:14:11 +01:00
|
|
|
(a.lib.optional (! (a.lib.attrByPath ["noUnicode"] false a))
|
|
|
|
"--enable-unicode")
|
2010-02-26 08:02:18 +01:00
|
|
|
;
|
2010-01-20 06:40:46 +01:00
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2010-02-23 22:32:16 +01:00
|
|
|
phaseNames = ["doConfigure" "doMakeInstall" "fixEclConfig"];
|
|
|
|
|
|
|
|
fixEclConfig = a.fullDepEntry ''
|
|
|
|
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
|
|
|
'' ["minInit"];
|
2010-01-20 06:40:46 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Lisp implementation aiming to be small and fast";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
2011-01-18 18:36:25 +01:00
|
|
|
}) x
|