1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 20:36:27 +00:00
nixpkgs/pkgs/development/compilers/ecl/default.nix
Michael Raskin b3583dc847 Build ECL with DFFI
svn path=/nixpkgs/trunk/; revision=25610
2011-01-18 17:36:25 +00:00

43 lines
1,009 B
Nix

{builderDefsPackage
, gmp, mpfr, libffi
, ...} @ x:
builderDefsPackage (a :
let
s = import ./src-for-default.nix;
helperArgNames = [];
propagatedBuildInputs = with a; [
gmp mpfr
];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs propagatedBuildInputs;
configureFlags = [
"--enable-threads"
]
++
(a.lib.optional (! (a.lib.attrByPath ["noUnicode"] false a))
"--enable-unicode")
;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall" "fixEclConfig"];
fixEclConfig = a.fullDepEntry ''
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
'' ["minInit"];
meta = {
description = "A Lisp implementation aiming to be small and fast";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
};
}) x