Update SBCL

svn path=/nixpkgs/trunk/; revision=18173
This commit is contained in:
Michael Raskin 2009-11-05 23:30:23 +00:00
parent 5638a33600
commit 0e608788c0
3 changed files with 23 additions and 9 deletions

View File

@ -1,17 +1,13 @@
a : a :
let let
fetchurl = a.fetchurl; fetchurl = a.fetchurl;
s= import ./src-for-default.nix;
version = a.lib.attrByPath ["version"] "1.0.29" a;
buildInputs = with a; [ buildInputs = with a; [
clisp makeWrapper clisp makeWrapper
]; ];
in in
rec { rec {
src = fetchurl { src = a.fetchUrlFromSrcInfo s;
url = "http://prdownloads.sourceforge.net/sbcl/sbcl-${version}-source.tar.bz2";
sha256 = "1bdsn4rnrz289068f1bdnxyijs4r02if4p87fv726glp5wm20q1z";
};
inherit buildInputs; inherit buildInputs;
configureFlags = []; configureFlags = [];
@ -20,7 +16,7 @@ rec {
phaseNames = ["setVars" "doFixNewer" "doFixTests" "setVersion" "doBuild" "doInstall" "doWrap"]; phaseNames = ["setVars" "doFixNewer" "doFixTests" "setVersion" "doBuild" "doInstall" "doWrap"];
goSrcDir = '' goSrcDir = ''
cd sbcl-${version}/ cd sbcl-${s.version}/
''; '';
setVars = a.fullDepEntry ('' setVars = a.fullDepEntry (''
@ -28,7 +24,7 @@ rec {
'') ["minInit"]; '') ["minInit"];
setVersion = a.fullDepEntry ('' setVersion = a.fullDepEntry (''
echo '"${version}.nixos"' > version.lisp-expr echo '"${s.version}.nixos"' > version.lisp-expr
echo " echo "
(lambda (features) (lambda (features)
(flet ((enable (x) (flet ((enable (x)
@ -71,10 +67,13 @@ rec {
sh install.sh sh install.sh
'') ["doBuild" "minInit" "addInputs"]; '') ["doBuild" "minInit" "addInputs"];
name = "sbcl-" + version; inherit(s) name;
meta = { meta = {
description = "Lisp compiler"; description = "Lisp compiler";
homepage = "http://www.sbcl.org";
license = "bsd";
maintainers = [a.lib.maintainers.raskin]; maintainers = [a.lib.maintainers.raskin];
platforms = with a.lib.platforms; all;
}; };
} }

View File

@ -0,0 +1,9 @@
rec {
version="1.0.32";
name="sbcl-1.0.32";
hash="00qwj4wfpk4d5a2mskpr3l9ahnqbvz2av878lcmrc7yj1y64vdqs";
url="http://prdownloads.sourceforge.net/sbcl/sbcl-1.0.32-source.tar.bz2";
advertisedUrl="http://prdownloads.sourceforge.net/sbcl/sbcl-1.0.32-source.tar.bz2";
}

View File

@ -0,0 +1,6 @@
{
baseName = "sbcl";
downloadPage = "http://www.sbcl.org/platform-table.html";
choiceCommand = "head -1 | sed -e 's/[?].*//'";
versionExtractorSedScript = "s/.*-([0-9.]+)-.*/\\1/";
}