mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Update SBCL
svn path=/nixpkgs/trunk/; revision=18173
This commit is contained in:
parent
5638a33600
commit
0e608788c0
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
9
pkgs/development/compilers/sbcl/src-for-default.nix
Normal file
9
pkgs/development/compilers/sbcl/src-for-default.nix
Normal 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";
|
||||
|
||||
|
||||
}
|
6
pkgs/development/compilers/sbcl/src-info-for-default.nix
Normal file
6
pkgs/development/compilers/sbcl/src-info-for-default.nix
Normal 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/";
|
||||
}
|
Loading…
Reference in New Issue
Block a user