diff options
author | Linus Heckemann <git@sphalerite.org> | 2019-09-10 14:04:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 14:04:11 +0200 |
commit | f024caa7a8f274a16048e71c30e1bac9e75c0ab4 (patch) | |
tree | f71892488cf784f2ae17cafb75982f049a6b21d0 /pkgs/applications/editors | |
parent | 8668af2b14761c4ece2742c7946f8197fb32064f (diff) | |
parent | cd9aec6114950f66050341cd18f2183068385013 (diff) | |
download | nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar.gz nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar.bz2 nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar.lz nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar.xz nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.tar.zst nixlib-f024caa7a8f274a16048e71c30e1bac9e75c0ab4.zip |
Merge pull request #68146 from averelld/rstudio-build-fix
rstudio: fix build with new hunspell-dicts
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/rstudio/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/editors/rstudio/default.nix b/pkgs/applications/editors/rstudio/default.nix index 74e5460f529f..933644cc4717 100644 --- a/pkgs/applications/editors/rstudio/default.nix +++ b/pkgs/applications/editors/rstudio/default.nix @@ -4,6 +4,7 @@ , llvmPackages }: +with stdenv.lib; let verMajor = "1"; verMinor = "2"; @@ -47,7 +48,13 @@ stdenv.mkDerivation rec { sha256 = "19x000m3jwnkqgi6ic81lkzyjvvxcfacw2j0vcfcaknvvagzhyhb"; }; - hunspellDictionaries = with stdenv.lib; filter isDerivation (unique (attrValues hunspellDicts)); + hunspellDictionaries = filter isDerivation (unique (attrValues hunspellDicts)); + # These dicts contain identically-named dict files, so we only keep the + # -large versions in case of clashes + largeDicts = filter (d: hasInfix "-large-wordlist" d) hunspellDictionaries; + otherDicts = filter (d: !(hasAttr "dictFileName" d && + elem d.dictFileName (map (d: d.dictFileName) largeDicts))) hunspellDictionaries; + dictionaries = largeDicts ++ otherDicts; mathJaxSrc = fetchurl { url = https://s3.amazonaws.com/rstudio-buildtools/mathjax-26.zip; @@ -77,7 +84,7 @@ stdenv.mkDerivation rec { mv gwt-${gwtVer} $GWT_LIB_DIR/gwt/${gwtVer} mkdir dependencies/common/dictionaries - for dict in ${builtins.concatStringsSep " " hunspellDictionaries}; do + for dict in ${builtins.concatStringsSep " " dictionaries}; do for i in "$dict/share/hunspell/"*; do ln -sv $i dependencies/common/dictionaries/ done |