mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
b1e93d013c
svn path=/nixpkgs/trunk/; revision=27141
41 lines
911 B
Nix
41 lines
911 B
Nix
{builderDefsPackage
|
|
, gmp, mpfr, libffi
|
|
, ...} @ x:
|
|
builderDefsPackage (a :
|
|
let
|
|
s = import ./src-for-default.nix;
|
|
propagatedBuildInputs = with a; [
|
|
gmp mpfr
|
|
];
|
|
buildInputs = [ gmp libffi mpfr ];
|
|
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
|