rstudio: 1.1.414 -> 1.1.423

Also fixes the version number displayed in GUI.

+21 -34
+21 -34
pkgs/applications/editors/rstudio/default.nix
··· 4 }: 5 6 let 7 - version = "1.1.414"; 8 ginVer = "1.5"; 9 gwtVer = "2.7.0"; 10 in ··· 19 owner = "rstudio"; 20 repo = "rstudio"; 21 rev = "v${version}"; 22 - sha256 = "1rr2zkv53r8swhq5d745jpp0ivxpsizzh7srf34isqpkn5pgx3v8"; 23 }; 24 25 # Hack RStudio to only use the input R. 26 patches = [ ./r-location.patch ]; 27 postPatch = "substituteInPlace src/cpp/core/r_util/REnvironmentPosix.cpp --replace '@R@' ${R}"; 28 29 - inherit ginVer; 30 ginSrc = fetchurl { 31 url = "https://s3.amazonaws.com/rstudio-buildtools/gin-${ginVer}.zip"; 32 sha256 = "155bjrgkf046b8ln6a55x06ryvm8agnnl7l8bkwwzqazbpmz8qgm"; 33 }; 34 35 - inherit gwtVer; 36 gwtSrc = fetchurl { 37 url = "https://s3.amazonaws.com/rstudio-buildtools/gwt-${gwtVer}.zip"; 38 sha256 = "1cs78z9a1jg698j2n35wsy07cy4fxcia9gi00x0r0qc3fcdhcrda"; 39 }; 40 41 - hunspellDictionaries = builtins.attrValues hunspellDicts; 42 43 mathJaxSrc = fetchurl { 44 url = https://s3.amazonaws.com/rstudio-buildtools/mathjax-26.zip; 45 sha256 = "0wbcqb9rbfqqvvhqr1pbqax75wp8ydqdyhp91fbqfqp26xzjv6lk"; 46 }; 47 48 - rmarkdownSrc = fetchFromGitHub { 49 - owner = "rstudio"; 50 - repo = "rmarkdown"; 51 - rev = "v1.8"; 52 - sha256 = "1blqxdr1vp2z5wd52nmf8hq36sdd4s2pyms441dqj50v35f8girb"; 53 - }; 54 - 55 - rsconnectSrc = fetchFromGitHub { 56 - owner = "rstudio"; 57 - repo = "rsconnect"; 58 - rev = "953c945779dd180c1bfe68f41c173c13ec3e222d"; 59 - sha256 = "1yxwd9v4mvddh7m5rbljicmssw7glh1lhin7a9f01vxxa92vpj7z"; 60 - }; 61 - 62 rstudiolibclang = fetchurl { 63 url = https://s3.amazonaws.com/rstudio-buildtools/libclang-3.5.zip; 64 sha256 = "1sl5vb8misipwbbbykdymw172w9qrh8xv3p29g0bf3nzbnv6zc7c"; ··· 71 72 preConfigure = 73 '' 74 GWT_LIB_DIR=src/gwt/lib 75 76 - mkdir -p $GWT_LIB_DIR/gin/$ginVer 77 - unzip $ginSrc -d $GWT_LIB_DIR/gin/$ginVer 78 79 - unzip $gwtSrc 80 mkdir -p $GWT_LIB_DIR/gwt 81 - mv gwt-$gwtVer $GWT_LIB_DIR/gwt/$gwtVer 82 83 mkdir dependencies/common/dictionaries 84 - for dict in $hunspellDictionaries; do 85 - for i in "$dict/share/hunspell/"* 86 - do ln -sv $i dependencies/common/dictionaries/ 87 - done 88 done 89 90 - unzip $mathJaxSrc -d dependencies/common/mathjax-26 91 - mkdir -p dependencies/common/rmarkdown 92 - ln -s $rmarkdownSrc dependencies/common/rmarkdown/ 93 - mkdir -p dependencies/common/rsconnect 94 - ln -s $rsconnectSrc dependencies/common/rsconnect/ 95 mkdir -p dependencies/common/libclang/3.5 96 - unzip $rstudiolibclang -d dependencies/common/libclang/3.5 97 mkdir -p dependencies/common/libclang/builtin-headers 98 - unzip $rstudiolibclangheaders -d dependencies/common/libclang/builtin-headers 99 100 mkdir -p dependencies/common/pandoc 101 cp ${pandoc}/bin/pandoc dependencies/common/pandoc/
··· 4 }: 5 6 let 7 + verMajor = "1"; 8 + verMinor = "1"; 9 + verPatch = "423"; 10 + version = "${verMajor}.${verMinor}.${verPatch}"; 11 ginVer = "1.5"; 12 gwtVer = "2.7.0"; 13 in ··· 22 owner = "rstudio"; 23 repo = "rstudio"; 24 rev = "v${version}"; 25 + sha256 = "02kpmzh0vr0gb5dhiwcm4gwjbc3biwz0km655mgzmx9j64cyd3nf"; 26 }; 27 28 # Hack RStudio to only use the input R. 29 patches = [ ./r-location.patch ]; 30 postPatch = "substituteInPlace src/cpp/core/r_util/REnvironmentPosix.cpp --replace '@R@' ${R}"; 31 32 ginSrc = fetchurl { 33 url = "https://s3.amazonaws.com/rstudio-buildtools/gin-${ginVer}.zip"; 34 sha256 = "155bjrgkf046b8ln6a55x06ryvm8agnnl7l8bkwwzqazbpmz8qgm"; 35 }; 36 37 gwtSrc = fetchurl { 38 url = "https://s3.amazonaws.com/rstudio-buildtools/gwt-${gwtVer}.zip"; 39 sha256 = "1cs78z9a1jg698j2n35wsy07cy4fxcia9gi00x0r0qc3fcdhcrda"; 40 }; 41 42 + hunspellDictionaries = with stdenv.lib; filter isDerivation (attrValues hunspellDicts); 43 44 mathJaxSrc = fetchurl { 45 url = https://s3.amazonaws.com/rstudio-buildtools/mathjax-26.zip; 46 sha256 = "0wbcqb9rbfqqvvhqr1pbqax75wp8ydqdyhp91fbqfqp26xzjv6lk"; 47 }; 48 49 rstudiolibclang = fetchurl { 50 url = https://s3.amazonaws.com/rstudio-buildtools/libclang-3.5.zip; 51 sha256 = "1sl5vb8misipwbbbykdymw172w9qrh8xv3p29g0bf3nzbnv6zc7c"; ··· 58 59 preConfigure = 60 '' 61 + export RSTUDIO_VERSION_MAJOR=${verMajor} 62 + export RSTUDIO_VERSION_MINOR=${verMinor} 63 + export RSTUDIO_VERSION_PATCH=${verPatch} 64 + 65 GWT_LIB_DIR=src/gwt/lib 66 67 + mkdir -p $GWT_LIB_DIR/gin/${ginVer} 68 + unzip ${ginSrc} -d $GWT_LIB_DIR/gin/${ginVer} 69 70 + unzip ${gwtSrc} 71 mkdir -p $GWT_LIB_DIR/gwt 72 + mv gwt-${gwtVer} $GWT_LIB_DIR/gwt/${gwtVer} 73 74 mkdir dependencies/common/dictionaries 75 + for dict in ${builtins.concatStringsSep " " hunspellDictionaries}; do 76 + for i in "$dict/share/hunspell/"*; do 77 + ln -sv $i dependencies/common/dictionaries/ 78 + done 79 done 80 81 + unzip ${mathJaxSrc} -d dependencies/common/mathjax-26 82 mkdir -p dependencies/common/libclang/3.5 83 + unzip ${rstudiolibclang} -d dependencies/common/libclang/3.5 84 mkdir -p dependencies/common/libclang/builtin-headers 85 + unzip ${rstudiolibclangheaders} -d dependencies/common/libclang/builtin-headers 86 87 mkdir -p dependencies/common/pandoc 88 cp ${pandoc}/bin/pandoc dependencies/common/pandoc/