2012-12-12 22:07:18 -08:00
|
|
|
{stdenv, fetchurl
|
2015-03-27 17:57:00 -07:00
|
|
|
, libtool, autoconf, automake
|
2012-12-12 22:07:18 -08:00
|
|
|
, gmp, mpfr, libffi
|
|
|
|
, noUnicode ? false,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="ecl";
|
2016-02-04 10:31:53 -08:00
|
|
|
version="16.0.0";
|
2012-12-12 22:07:18 -08:00
|
|
|
name="${baseName}-${version}";
|
2016-02-04 10:31:53 -08:00
|
|
|
hash="0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil";
|
|
|
|
url="https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz";
|
|
|
|
sha256="0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil";
|
2012-12-12 22:07:18 -08:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2015-03-27 17:57:00 -07:00
|
|
|
libtool autoconf automake
|
2012-12-12 22:07:18 -08:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
2015-03-27 17:57:00 -07:00
|
|
|
libffi gmp mpfr
|
2010-01-19 21:40:46 -08:00
|
|
|
];
|
|
|
|
in
|
2012-12-12 22:07:18 -08:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2010-02-23 13:32:16 -08:00
|
|
|
inherit buildInputs propagatedBuildInputs;
|
2012-12-12 22:07:18 -08:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2010-02-09 05:54:29 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-threads"
|
2015-03-27 17:57:00 -07:00
|
|
|
"--with-gmp-prefix=${gmp}"
|
|
|
|
"--with-libffi-prefix=${libffi}"
|
2010-02-25 23:02:18 -08:00
|
|
|
]
|
|
|
|
++
|
2012-12-12 22:07:18 -08:00
|
|
|
(stdenv.lib.optional (! noUnicode)
|
2010-02-25 23:14:11 -08:00
|
|
|
"--enable-unicode")
|
2010-02-25 23:02:18 -08:00
|
|
|
;
|
2012-12-12 22:07:18 -08:00
|
|
|
postInstall = ''
|
2010-02-23 13:32:16 -08:00
|
|
|
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
2012-12-12 22:07:18 -08:00
|
|
|
'';
|
2010-01-19 21:40:46 -08:00
|
|
|
meta = {
|
2012-12-12 22:07:18 -08:00
|
|
|
inherit (s) version;
|
|
|
|
description = "Lisp implementation aiming to be small, fast and easy to embed";
|
|
|
|
license = stdenv.lib.licenses.mit ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-01-19 21:40:46 -08:00
|
|
|
};
|
2012-12-12 22:07:18 -08:00
|
|
|
}
|