1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/compilers/ecl/default.nix

47 lines
1,012 B
Nix
Raw Normal View History

2012-12-13 06:07:18 +00:00
{stdenv, fetchurl
, libtool, autoconf, automake
2012-12-13 06:07:18 +00:00
, gmp, mpfr, libffi
2016-02-12 01:01:37 +00:00
, noUnicode ? false,
2012-12-13 06:07:18 +00:00
}:
2016-02-12 01:01:37 +00:00
2012-12-13 06:07:18 +00:00
let
2016-02-12 01:01:37 +00:00
baseName = "ecl";
version = "16.0.0";
in
2012-12-13 06:07:18 +00:00
stdenv.mkDerivation {
2016-02-12 01:01:37 +00:00
name = "${baseName}-${version}";
inherit version;
2012-12-13 06:07:18 +00:00
src = fetchurl {
2016-02-12 01:01:37 +00:00
url = "https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz";
sha256 = "0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil";
2012-12-13 06:07:18 +00:00
};
2016-02-12 01:01:37 +00:00
configureFlags = [
"--enable-threads"
"--with-gmp-prefix=${gmp}"
"--with-libffi-prefix=${libffi}"
2016-02-12 01:01:37 +00:00
] ++ (stdenv.lib.optional (!noUnicode) "--enable-unicode");
buildInputs = [
libtool autoconf automake
];
propagatedBuildInputs = [
libffi gmp mpfr
];
hardening_format = false;
2012-12-13 06:07:18 +00:00
postInstall = ''
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
2012-12-13 06:07:18 +00:00
'';
2016-02-12 01:01:37 +00:00
meta = {
2012-12-13 06:07:18 +00:00
description = "Lisp implementation aiming to be small, fast and easy to embed";
2016-02-12 01:01:37 +00:00
license = stdenv.lib.licenses.mit;
2012-12-13 06:07:18 +00:00
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
2012-12-13 06:07:18 +00:00
}