anchor.diff:  /* hunspell dictionaries */
   
  -{ stdenv, fetchurl, unzip }:
  -
  -with stdenv.lib;
  +{ stdenv, fetchurl, fetchFromGitHub, unzip, coreutils, bash, which, zip }:
  +
   
   let
  -
     mkDict =
  -  { name, src, meta, readmeFile, dictFileName, ... }:
  -  let
  -    isFrench = hasSuffix "fr_" dictFileName;
  -    isItaly = hasSuffix "it_" dictFileName;
  -    isSpanish = hasSuffix "es_" dictFileName;
  -    isEnglish = hasSuffix "en_" dictFileName;
  -  in
  -  stdenv.mkDerivation rec {
  -    inherit name src meta;
  -    buildInputs = [ unzip ];
  -    sourceRoot = ".";
  -    phases = "unpackPhase installPhase" + (if isItaly then "patchPhase" else "");
  -    unpackCmd = "unzip $src ${readmeFile} ${dictFileName}.dic ${dictFileName}.aff";
  -    prePatch = if isItaly then ''
  -    # Fix dic file empty lines (FS#22275)
  -    sed '/^\/$/d' -i it_IT.dic
  -    '' else "";
  -
  +  { name, readmeFile, dictFileName, ... }@args:
  +  stdenv.mkDerivation (rec {
  +    inherit name;
       installPhase = ''
         # hunspell dicts
         install -dm755 "$out/share/hunspell"
  
positive.code:         maintainers = with maintainers; [ renzo ];
          platforms = platforms.all;
        };
      };
  
    mkLinguistico =
      { shortName, shortDescription, dictFileName, src }:
      mkDict rec {
        inherit src dictFileName;
  
negative.code:       install -dm755 "$out/share/doc"
        install -m644 ${readmeFile} $out/share/doc/${name}.txt
      '';
    } // args);
  
    mkDictFromRla =
      { shortName, shortDescription, dictFileName }:
      mkDict rec {
        inherit dictFileName;
        version = "2.2";
        name = "hunspell-dict-${shortName}-rla-${version}";
        readmeFile = "README.txt";
        src = fetchFromGitHub {
          owner = "sbosio";
          repo = "rla-es";
          rev = "v${version}";
          sha256 = "0n9ms092k7vg7xpd3ksadxydbrizkb7js7dfxr08nbnnb9fgy0i8";
        };
        meta = with stdenv.lib; {
          description = "Hunspell dictionary for ${shortDescription} from rla";
          homepage = https://github.com/sbosio/rla-es;
          license = with licenses; [ gpl3 lgpl3 mpl11 ];
          maintainers = with maintainers; [ renzo ];
          platforms = platforms.all;
        };
        phases = "unpackPhase patchPhase buildPhase installPhase";
        buildInputs = [ bash coreutils unzip which zip ];
        patchPhase = ''
          substituteInPlace ortograf/herramientas/make_dict.sh \
             --replace /bin/bash bash \
             --replace /dev/stderr stderr.log
  
          substituteInPlace ortograf/herramientas/remover_comentarios.sh \
             --replace /bin/bash bash \
        '';
        buildPhase = ''
          cd ortograf/herramientas
          bash -x ./make_dict.sh -l ${dictFileName} -2
          unzip ${dictFileName}.zip \
            ${dictFileName}.dic ${dictFileName}.aff ${readmeFile}
        '';
      };
  
    mkDictFromDicollecte =
      { shortName, shortDescription, longDescription, dictFileName }:
  