Merge pull request #6957 from ehmry/rstudio

RStudio: initial commit at version 0.98.110

+73
+71
pkgs/applications/editors/rstudio/default.nix
··· 1 + { stdenv, fetchurl, cmake, boost155, zlib, openssl, R, qt4, libuuid, hunspellDicts, unzip, ant, jdk }: 2 + 3 + let 4 + version = "0.98.110"; 5 + ginVer = "1.5"; 6 + gwtVer = "2.5.1"; 7 + in 8 + stdenv.mkDerivation { 9 + name = "RStudio-${version}"; 10 + 11 + buildInputs = [ cmake boost155 zlib openssl R qt4 libuuid unzip ant jdk ]; 12 + 13 + src = fetchurl { 14 + url = "https://github.com/rstudio/rstudio/archive/v${version}.tar.gz"; 15 + sha256 = "0wybbvl5libki8z2ywgcd0hg0py1az484r95lhwh3jbrwfx7ri2z"; 16 + }; 17 + 18 + # Hack RStudio to only use the input R. 19 + patches = [ ./r-location.patch ]; 20 + postPatch = "substituteInPlace src/cpp/core/r_util/REnvironmentPosix.cpp --replace '@R@' ${R}"; 21 + 22 + inherit ginVer; 23 + ginSrc = fetchurl { 24 + url = "https://s3.amazonaws.com/rstudio-buildtools/gin-${ginVer}.zip"; 25 + sha256 = "155bjrgkf046b8ln6a55x06ryvm8agnnl7l8bkwwzqazbpmz8qgm"; 26 + }; 27 + 28 + inherit gwtVer; 29 + gwtSrc = fetchurl { 30 + url = "https://s3.amazonaws.com/rstudio-buildtools/gwt-${gwtVer}.zip"; 31 + sha256 = "0fjr2rcr8lnywj54mzhg9i4xz1b6fh8yv12p5i2q5mgfld2xymy4"; 32 + }; 33 + 34 + hunspellDicts = builtins.attrValues hunspellDicts; 35 + 36 + mathJaxSrc = fetchurl { 37 + url = https://s3.amazonaws.com/rstudio-buildtools/mathjax-20.zip; 38 + sha256 = "1ikg3fhharsfrh2fv8c53fdawqajj24nif89400l3klw1hyq4zal"; 39 + }; 40 + 41 + preConfigure = 42 + '' 43 + GWT_LIB_DIR=src/gwt/lib 44 + 45 + mkdir -p $GWT_LIB_DIR/gin/$ginVer 46 + unzip $ginSrc -d $GWT_LIB_DIR/gin/$ginVer 47 + 48 + unzip $gwtSrc 49 + mkdir -p $GWT_LIB_DIR/gwt 50 + mv gwt-$gwtVer $GWT_LIB_DIR/gwt/$gwtVer 51 + 52 + mkdir dependencies/common/dictionaries 53 + for dict in $hunspellDicts; do 54 + for i in $dict/share/hunspell/* 55 + do ln -sv $i dependencies/common/dictionaries/ 56 + done 57 + done 58 + 59 + unzip $mathJaxSrc -d dependencies/common/mathjax 60 + ''; 61 + 62 + cmakeFlags = [ "-DRSTUDIO_TARGET=Desktop" ]; 63 + 64 + meta = with stdenv.lib; 65 + { description = "Set of integrated tools for the R language"; 66 + homepage = http://www.rstudio.com/; 67 + license = licenses.agpl3; 68 + maintainers = [ maintainers.emery ]; 69 + platforms = platforms.linux; 70 + }; 71 + }
+2
pkgs/top-level/all-packages.nix
··· 11502 11502 automake = automake114x; 11503 11503 }; 11504 11504 11505 + rstudio = callPackage ../applications/editors/rstudio { }; 11506 + 11505 11507 rsync = callPackage ../applications/networking/sync/rsync { 11506 11508 enableACLs = !(stdenv.isDarwin || stdenv.isSunOS || stdenv.isFreeBSD); 11507 11509 enableCopyDevicesPatch = (config.rsync.enableCopyDevicesPatch or false);