summary refs log tree commit diff
path: root/pkgs/development/libraries/hspell
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2010-10-17 18:44:00 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2010-10-17 18:44:00 +0000
commitc703c1d560f9f15027ccddf5604ffbd5598baf26 (patch)
treedfff30f4528d21785eec0679e30cc1ef8decbbc5 /pkgs/development/libraries/hspell
parent586de5566a1d17c4ebe503434fbc05ccd880b41b (diff)
downloadnixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar.gz
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar.bz2
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar.lz
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar.xz
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.tar.zst
nixpkgs-c703c1d560f9f15027ccddf5604ffbd5598baf26.zip
hspell (another KDE dependency)
svn path=/nixpkgs/trunk/; revision=24331
Diffstat (limited to 'pkgs/development/libraries/hspell')
-rw-r--r--pkgs/development/libraries/hspell/default.nix28
-rw-r--r--pkgs/development/libraries/hspell/dicts.nix43
2 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hspell/default.nix b/pkgs/development/libraries/hspell/default.nix
new file mode 100644
index 00000000000..9b44d12c293
--- /dev/null
+++ b/pkgs/development/libraries/hspell/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, perl, zlib }:
+
+stdenv.mkDerivation rec {
+  name = "${passthru.pname}-${passthru.version}";
+
+  passthru = {
+    pname = "hspell";
+    version = "1.1";
+  };
+
+  src = fetchurl {
+    url = "${meta.homepage}${name}.tar.gz";
+    sha256 = "08x7rigq5pa1pfpl30qp353hbdkpadr1zc49slpczhsn0sg36pd6";
+  };
+
+  patchPhase = ''patchShebangs .'';
+  buildInputs = [ perl zlib ];
+
+  makeFlags = "CFLAGS=-fPIC";
+
+  meta = {
+    description = "Hebrew spell checker";
+    homepage = http://hspell.ivrix.org.il/;
+    platforms = stdenv.lib.platforms.all;
+    maintainers = [ stdenv.lib.maintainers.urkud ];
+# Note that I don't speak hebrew, so I can only fix compile problems
+  };
+}
diff --git a/pkgs/development/libraries/hspell/dicts.nix b/pkgs/development/libraries/hspell/dicts.nix
new file mode 100644
index 00000000000..a2ef479e3c4
--- /dev/null
+++ b/pkgs/development/libraries/hspell/dicts.nix
@@ -0,0 +1,43 @@
+{ stdenv, hspell }:
+
+let
+  dict = a: stdenv.mkDerivation ({
+    inherit (hspell) src patchPhase buildNativeInputs;
+    meta = hspell.meta // {
+      description = "${a.buildFlags} Hebrew dictionary";
+    } // a.meta;
+  } // (removeAttrs ["meta"] a));
+in
+{
+  recurseForDerivations = true;
+
+  aspell = dict {
+    name = "aspell-dict-he-${hspell.version}";
+
+    buildFlags = "aspell";
+
+    installPhase = ''
+      mkdir -p $out/lib/aspell
+      cp -v he_affix.dat he.wl $out/lib/aspell'';
+  };
+
+  myspell = dict {
+    name = "myspell-dict-he-${hspell.version}";
+
+    buildFlags = "myspell";
+
+    installPhase = ''
+      mkdir -p $out/lib/myspell
+      cp -v he.dic he.aff $out/lib/myspell'';
+  };
+
+  hunspell = dict {
+    name = "hunspell-dict-he-${hspell.version}";
+
+    buildFlags = "hunspell";
+
+    installPhase = ''
+      mkdir -p $out/lib
+      cp -rv hunspell $out/lib'';
+  };
+}