2008-08-29 15:53:28 +02:00
|
|
|
{stdenv, fetchurl, readline, perl, gfortran, libX11, libpng, libXt, zlib,
|
|
|
|
withBioconductor ? false
|
|
|
|
}:
|
2008-05-07 13:24:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-08-29 15:53:28 +02:00
|
|
|
name = "r-lang";
|
|
|
|
version = "2.7.0";
|
2008-05-07 13:24:28 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://cran.r-project.org/src/base/R-2/R-2.7.0.tar.gz;
|
|
|
|
sha256 = "17ql1j5d9rfpxs04j9v9qyxiysc9nh6yr43lgfdamayzjpia5jqm";
|
|
|
|
};
|
|
|
|
|
2008-08-29 15:53:28 +02:00
|
|
|
bioconductor = if withBioconductor then import ../development/libraries/science/biology/bioconductor { inherit fetchurl stdenv readline; } else null;
|
|
|
|
|
2008-08-07 10:33:03 +02:00
|
|
|
buildInputs = [readline perl gfortran libpng libX11 libXt zlib];
|
2008-08-07 17:01:21 +02:00
|
|
|
configureFlags = ["--enable-R-shlib"] ;
|
2008-05-07 13:24:28 +02:00
|
|
|
|
2008-08-29 15:53:28 +02:00
|
|
|
meta = {
|
|
|
|
description = "R is a language and environment for statistical computing and graphics";
|
|
|
|
longDescription = ''R is a language and environment for statistical computin
|
|
|
|
g and graphics. It is a GNU project which is similar to the S language. R provid
|
|
|
|
es a wide variety of statistical (linear and nonlinear modelling, classical stat
|
|
|
|
istical tests, time-series analysis, classification, clustering, ...) and graphi
|
|
|
|
cal techniques, and is highly extensible.'';
|
|
|
|
license = "GPL2";
|
2008-05-07 13:24:28 +02:00
|
|
|
homepage = http://www.r-project.org/;
|
|
|
|
};
|
|
|
|
}
|
2008-08-07 17:01:21 +02:00
|
|
|
|
|
|
|
|