ECL: update to 12.12.1

This commit is contained in:
Michael Raskin 2012-12-13 10:07:18 +04:00
parent 5054e8ec29
commit f0997b9737
2 changed files with 36 additions and 34 deletions

View File

@ -1,47 +1,45 @@
{builderDefsPackage {stdenv, fetchurl
, gmp, mpfr, libffi , gmp, mpfr, libffi
, ...} @ x: , noUnicode ? false,
builderDefsPackage (a : }:
let let
propagatedBuildInputs = with a; [ s = # Generated upstream information
rec {
baseName="ecl";
version="12.12.1";
name="${baseName}-${version}";
hash="15y2dgj95li6mxiz9pnllj9x88km0z8gfh46kysfllkp2pl7rrsl";
url="mirror://sourceforge/project/ecls/ecls/12.12/ecl-12.12.1.tgz";
sha256="15y2dgj95li6mxiz9pnllj9x88km0z8gfh46kysfllkp2pl7rrsl";
};
buildInputs = [
libffi
];
propagatedBuildInputs = [
gmp mpfr gmp mpfr
]; ];
buildInputs = [ gmp libffi mpfr ];
in in
rec { stdenv.mkDerivation {
mainVersion = "12.7"; inherit (s) name version;
revision = "1";
version = "${mainVersion}.${revision}";
name = "ecl-${version}";
src = a.fetchurl {
url = "mirror://sourceforge/project/ecls/ecls/${mainVersion}/${name}.tar.gz";
sha256 = "0k8ww142g3bybvvnlijqsbidl8clbs1pb4ympk2ds07z5swvy2ap";
};
inherit buildInputs propagatedBuildInputs; inherit buildInputs propagatedBuildInputs;
src = fetchurl {
inherit (s) url sha256;
};
configureFlags = [ configureFlags = [
"--enable-threads" "--enable-threads"
] ]
++ ++
(a.lib.optional (! (a.lib.attrByPath ["noUnicode"] false a)) (stdenv.lib.optional (! noUnicode)
"--enable-unicode") "--enable-unicode")
; ;
postInstall = ''
/* 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 sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
'' ["minInit"]; '';
meta = { meta = {
description = "A Lisp implementation aiming to be small and fast"; inherit (s) version;
maintainers = [ description = "Lisp implementation aiming to be small, fast and easy to embed";
a.lib.maintainers.raskin license = stdenv.lib.licenses.mit ;
]; maintainers = [stdenv.lib.maintainers.raskin];
platforms = with a.lib.platforms; platforms = stdenv.lib.platforms.linux;
linux;
}; };
}) x }

View File

@ -0,0 +1,4 @@
url http://sourceforge.net/projects/ecls/files/ecls/
SF_version_dir
version_link '[.]tgz/download$'
SF_redirect