diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/hspell')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/hspell/default.nix | 27 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/hspell/dicts.nix | 40 |
2 files changed, 67 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/hspell/default.nix b/nixpkgs/pkgs/development/libraries/hspell/default.nix new file mode 100644 index 000000000000..8501bf88b6d4 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/hspell/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, perl, zlib }: + +stdenv.mkDerivation rec { + name = "${passthru.pname}-${passthru.version}"; + + passthru = { + pname = "hspell"; + version = "1.1"; + }; + + PERL_USE_UNSAFE_INC = "1"; + + src = fetchurl { + url = "${meta.homepage}${name}.tar.gz"; + sha256 = "08x7rigq5pa1pfpl30qp353hbdkpadr1zc49slpczhsn0sg36pd6"; + }; + + patchPhase = ''patchShebangs .''; + buildInputs = [ perl zlib ]; + + meta = with stdenv.lib; { + description = "Hebrew spell checker"; + homepage = "http://hspell.ivrix.org.il/"; + platforms = platforms.all; + license = licenses.gpl2; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/hspell/dicts.nix b/nixpkgs/pkgs/development/libraries/hspell/dicts.nix new file mode 100644 index 000000000000..83942c2c1dde --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/hspell/dicts.nix @@ -0,0 +1,40 @@ +{ stdenv, hspell }: + +let + dict = variant: a: stdenv.mkDerivation ({ + inherit (hspell) src patchPhase nativeBuildInputs; + buildFlags = [ variant ]; + + meta = hspell.meta // { + broken = true; + description = "${variant} Hebrew dictionary"; + } // (if a ? meta then a.meta else {}); + } // (removeAttrs a ["meta"])); +in +{ + recurseForDerivations = true; + + aspell = dict "aspell" { + name = "aspell-dict-he-${hspell.version}"; + + installPhase = '' + mkdir -p $out/lib/aspell + cp -v he_affix.dat he.wl $out/lib/aspell''; + }; + + myspell = dict "myspell" { + name = "myspell-dict-he-${hspell.version}"; + + installPhase = '' + mkdir -p $out/lib/myspell + cp -v he.dic he.aff $out/lib/myspell''; + }; + + hunspell = dict "hunspell" { + name = "hunspell-dict-he-${hspell.version}"; + + installPhase = '' + mkdir -p $out/lib + cp -rv hunspell $out/lib''; + }; +} |