From 4609c9dae909e30dab5bec067d594b6952980351 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 7 May 2008 11:24:28 +0000 Subject: [PATCH] Support for R-language (statistical) svn path=/nixpkgs/trunk/; revision=11769 --- .../interpreters/r-lang/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/interpreters/r-lang/default.nix diff --git a/pkgs/development/interpreters/r-lang/default.nix b/pkgs/development/interpreters/r-lang/default.nix new file mode 100644 index 00000000000..a819fbe4616 --- /dev/null +++ b/pkgs/development/interpreters/r-lang/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, readline, perl, g77_42, libX11, libpng, libXt, zlib}: + +stdenv.mkDerivation { + name = "r-lang-2.7.0"; + src = fetchurl { + url = http://cran.r-project.org/src/base/R-2/R-2.7.0.tar.gz; + sha256 = "17ql1j5d9rfpxs04j9v9qyxiysc9nh6yr43lgfdamayzjpia5jqm"; + }; + + buildInputs = [readline perl g77_42 libpng libX11 libXt zlib]; + + meta = { + description = "R is a language and environment for statistical computing and graphics"; + 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.''; + license = "GPL2"; + homepage = http://www.r-project.org/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bac5e2372d1..39f8e4484a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1833,6 +1833,11 @@ let pkgs = rec { inherit fetchurl stdenv readline ncurses zlib lib openssl; }; + rLang = import ../development/interpreters/r-lang { + inherit fetchurl stdenv readline perl g77_42 libpng zlib; + inherit (xorg) libX11 libXt; + }; + rubygemsFun = builderDefsPackage (import ../development/interpreters/ruby/gems.nix) { inherit ruby makeWrapper; };