2010-11-29 11:13:03 +00:00
|
|
|
{ stdenv, fetchurl, readline, perl, gfortran, libX11, libpng, libXt, zlib
|
|
|
|
, withBioconductor ? false
|
2008-08-29 14:53:28 +01:00
|
|
|
}:
|
2008-05-07 12:24:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-08-29 14:53:28 +01:00
|
|
|
name = "r-lang";
|
2010-11-29 11:12:43 +00:00
|
|
|
version = "2.12.0";
|
2008-05-07 12:24:28 +01:00
|
|
|
src = fetchurl {
|
2010-11-29 11:12:43 +00:00
|
|
|
url = http://cran.r-project.org/src/base/R-2/R-2.12.0.tar.gz;
|
|
|
|
sha256 = "93d72d845b01c6cd00e58f04b5e78fd6c83de96a8620505ad2a016772af02179";
|
2008-05-07 12:24:28 +01:00
|
|
|
};
|
|
|
|
|
2008-08-29 14:53:28 +01:00
|
|
|
bioconductor = if withBioconductor then import ../development/libraries/science/biology/bioconductor { inherit fetchurl stdenv readline; } else null;
|
2010-11-29 11:12:43 +00:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
gunzip R-2.12.0/src/library/Recommended/Matrix_0.999375-44.tar.gz
|
|
|
|
tar --file=R-2.12.0/src/library/Recommended/Matrix_0.999375-44.tar --delete Matrix/src/dummy.cpp
|
|
|
|
gzip R-2.12.0/src/library/Recommended/Matrix_0.999375-44.tar
|
|
|
|
'';
|
|
|
|
|
2008-08-07 09:33:03 +01:00
|
|
|
buildInputs = [readline perl gfortran libpng libX11 libXt zlib];
|
2008-08-07 16:01:21 +01:00
|
|
|
configureFlags = ["--enable-R-shlib"] ;
|
2008-05-07 12:24:28 +01:00
|
|
|
|
2008-08-29 14:53:28 +01:00
|
|
|
meta = {
|
|
|
|
description = "R is a language and environment for statistical computing and graphics";
|
|
|
|
license = "GPL2";
|
2008-05-07 12:24:28 +01:00
|
|
|
homepage = http://www.r-project.org/;
|
2010-11-29 11:13:03 +00:00
|
|
|
longDescription = ''
|
|
|
|
R is a language and environment for statistical computing and
|
|
|
|
graphics. It is a GNU project which is similar to the S language.
|
|
|
|
R provides a wide variety of statistical (linear and nonlinear
|
|
|
|
modelling, classical statistical tests, time-series analysis,
|
|
|
|
classification, clustering, ...) and graphical techniques, and is
|
|
|
|
highly extensible.
|
|
|
|
'';
|
2008-05-07 12:24:28 +01:00
|
|
|
};
|
|
|
|
}
|