diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2012-12-13 10:07:18 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2012-12-13 10:07:18 +0400 |
commit | f0997b9737394725201e1c19e8325b56eb6c694c (patch) | |
tree | 724cf2d9b23fe01432b9967bf4801c04d37c3c36 /pkgs/development/compilers | |
parent | 5054e8ec29f06dae986297debc6d0c4e60c9da7a (diff) | |
download | nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar.gz nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar.bz2 nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar.lz nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar.xz nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.tar.zst nixlib-f0997b9737394725201e1c19e8325b56eb6c694c.zip |
ECL: update to 12.12.1
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/ecl/default.nix | 66 | ||||
-rw-r--r-- | pkgs/development/compilers/ecl/default.upstream | 4 |
2 files changed, 36 insertions, 34 deletions
diff --git a/pkgs/development/compilers/ecl/default.nix b/pkgs/development/compilers/ecl/default.nix index fb801b6b8440..40690841965a 100644 --- a/pkgs/development/compilers/ecl/default.nix +++ b/pkgs/development/compilers/ecl/default.nix @@ -1,47 +1,45 @@ -{builderDefsPackage - , gmp, mpfr, libffi - , ...} @ x: -builderDefsPackage (a : -let - propagatedBuildInputs = with a; [ +{stdenv, fetchurl +, gmp, mpfr, libffi +, noUnicode ? false, +}: +let + 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 ]; - buildInputs = [ gmp libffi mpfr ]; in -rec { - mainVersion = "12.7"; - revision = "1"; - version = "${mainVersion}.${revision}"; - - name = "ecl-${version}"; - - src = a.fetchurl { - url = "mirror://sourceforge/project/ecls/ecls/${mainVersion}/${name}.tar.gz"; - sha256 = "0k8ww142g3bybvvnlijqsbidl8clbs1pb4ympk2ds07z5swvy2ap"; - }; - +stdenv.mkDerivation { + inherit (s) name version; inherit buildInputs propagatedBuildInputs; + src = fetchurl { + inherit (s) url sha256; + }; configureFlags = [ "--enable-threads" ] ++ - (a.lib.optional (! (a.lib.attrByPath ["noUnicode"] false a)) + (stdenv.lib.optional (! noUnicode) "--enable-unicode") ; - - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall" "fixEclConfig"]; - - fixEclConfig = a.fullDepEntry '' + postInstall = '' 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; + 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; }; -}) x +} diff --git a/pkgs/development/compilers/ecl/default.upstream b/pkgs/development/compilers/ecl/default.upstream new file mode 100644 index 000000000000..70dcb1b43442 --- /dev/null +++ b/pkgs/development/compilers/ecl/default.upstream @@ -0,0 +1,4 @@ +url http://sourceforge.net/projects/ecls/files/ecls/ +SF_version_dir +version_link '[.]tgz/download$' +SF_redirect |