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