diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-06-23 08:16:49 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-06-23 08:16:49 +0000 |
commit | 4dc730a187d41f9f2dce4fe2680c32dcecb79b93 (patch) | |
tree | 67673deb1649dc0a40962e70e6da302d7b6c4bf0 /nixpkgs/pkgs/development/libraries/hunspell | |
parent | 633cab0ecb07627706c6b523e219490f019eaab5 (diff) | |
parent | 7e567a3d092b7de69cdf5deaeb8d9526de230916 (diff) | |
download | nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar.gz nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar.bz2 nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar.lz nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar.xz nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.tar.zst nixlib-4dc730a187d41f9f2dce4fe2680c32dcecb79b93.zip |
Merge commit '7e567a3d092b7de69cdf5deaeb8d9526de230916'
# Conflicts: # nixpkgs/pkgs/top-level/all-packages.nix
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/hunspell')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix | 70 |
1 files changed, 56 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix b/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix index f1bcd4ad00c0..596326b36df4 100644 --- a/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix +++ b/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix @@ -5,10 +5,11 @@ let mkDict = - { name, readmeFile, dictFileName, ... }@args: + { pname, readmeFile, dictFileName, ... }@args: stdenv.mkDerivation ({ - inherit name; + inherit pname; installPhase = '' + runHook preInstall # hunspell dicts install -dm755 "$out/share/hunspell" install -m644 ${dictFileName}.dic "$out/share/hunspell/" @@ -19,7 +20,7 @@ let ln -sv "$out/share/hunspell/${dictFileName}.aff" "$out/share/myspell/dicts/" # docs install -dm755 "$out/share/doc" - install -m644 ${readmeFile} $out/share/doc/${name}.txt + install -m644 ${readmeFile} $out/share/doc/${pname}.txt runHook postInstall ''; } // args); @@ -29,7 +30,7 @@ let mkDict rec { inherit dictFileName; version = "2.2"; - name = "hunspell-dict-${shortName}-rla-${version}"; + pname = "hunspell-dict-${shortName}-rla"; readmeFile = "README.txt"; src = fetchFromGitHub { owner = "sbosio"; @@ -70,7 +71,7 @@ let version = "2.40"; # Should really use a string function or something _version = "2-40"; - name = "hunspell-dict-${shortName}-dsso-${version}"; + pname = "hunspell-dict-${shortName}-dsso"; _name = "ooo_swedish_dict_${_version}"; readmeFile = "LICENSE_en_US.txt"; src = fetchurl { @@ -104,7 +105,7 @@ let ln -sv "$out/share/hunspell/${dictFileName}.aff" "$out/share/myspell/dicts/" # docs install -dm755 "$out/share/doc" - install -m644 ${readmeFile} $out/share/doc/${name}.txt + install -m644 ${readmeFile} $out/share/doc/${pname}.txt ''; }; @@ -113,7 +114,7 @@ let mkDict rec { inherit dictFileName; version = "5.3"; - name = "hunspell-dict-${shortName}-dicollecte-${version}"; + pname = "hunspell-dict-${shortName}-dicollecte"; readmeFile = "README_dict_fr.txt"; src = fetchurl { url = "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v${version}.zip"; @@ -146,7 +147,7 @@ let mkDict rec { inherit src srcFileName dictFileName; version = "2018.04.16"; - name = "hunspell-dict-${shortName}-wordlist-${version}"; + pname = "hunspell-dict-${shortName}-wordlist"; srcReadmeFile = "README_" + srcFileName + ".txt"; readmeFile = "README_" + dictFileName + ".txt"; meta = with lib; { @@ -174,7 +175,7 @@ let mkDict rec { inherit src dictFileName; version = "2.4"; - name = "hunspell-dict-${shortName}-linguistico-${version}"; + pname = "hunspell-dict-${shortName}-linguistico"; readmeFile = dictFileName + "_README.txt"; meta = with lib; { description = "Hunspell dictionary for ${shortDescription}"; @@ -198,7 +199,7 @@ let mkDictFromXuxen = { shortName, srcs, shortDescription, longDescription, dictFileName }: stdenv.mkDerivation rec { - name = "hunspell-dict-${shortName}-xuxen-${version}"; + pname = "hunspell-dict-${shortName}-xuxen"; version = "5-2015.11.10"; inherit srcs; @@ -231,7 +232,7 @@ let mkDictFromJ3e = { shortName, shortDescription, dictFileName }: stdenv.mkDerivation rec { - name = "hunspell-dict-${shortName}-j3e-${version}"; + pname = "hunspell-dict-${shortName}-j3e"; version = "20161207"; src = fetchurl { @@ -272,7 +273,7 @@ let , readmeFile ? "README_${dictFileName}.txt" , sourceRoot ? dictFileName }: mkDict rec { - name = "hunspell-dict-${shortName}-libreoffice-${version}"; + pname = "hunspell-dict-${shortName}-libreoffice"; version = "6.3.0.4"; inherit dictFileName readmeFile; src = fetchFromGitHub { @@ -699,7 +700,7 @@ in rec { uk_UA = uk-ua; uk-ua = mkDict rec { - name = "hunspell-dict-uk-ua-${version}"; + pname = "hunspell-dict-uk-ua"; version = "4.6.3"; _version = "4-6.3"; @@ -760,7 +761,7 @@ in rec { da_DK = da-dk; da-dk = mkDict rec { - name = "hunspell-dict-da-dk-${version}"; + pname = "hunspell-dict-da-dk"; version = "2.5.189"; src = fetchurl { @@ -784,4 +785,45 @@ in rec { maintainers = with maintainers; [ louisdk1 ]; }; }; + + /* DUTCH */ + + nl_NL = nl_nl; + nl_nl = mkDict rec { + pname = "hunspell-dict-nl-nl"; + version = "2.20.19"; + + src = fetchFromGitHub { + owner = "OpenTaal"; + repo = "opentaal-hunspell"; + rev = version; + sha256 = "0jma8mmrncyzd77kxliyngs4z6z4769g3nh0a7xn2pd4s5y2xdpy"; + }; + + preInstall = '' + mv nl.aff nl_NL.aff + mv nl.dic nl_NL.dic + ''; + + dictFileName = "nl_NL"; + readmeFile = "README.md"; + + meta = with lib; { + description = "Hunspell dictionary for Dutch (Netherlands) from OpenTaal"; + homepage = "https://www.opentaal.org/"; + license = with licenses; [ bsd3 cc-by-nc-30 ]; + maintainers = with maintainers; [ artturin ]; + }; + }; + + /* HEBREW */ + + he_IL = he-il; + he-il = mkDictFromLibreOffice { + shortName = "he-il"; + dictFileName = "he_IL"; + shortDescription = "Hebrew (Israel)"; + readmeFile = "README_he_IL.txt"; + license = with lib.licenses; [ agpl3Plus ]; + }; } |