Author: urkud
Date: Sun Oct 17 18:44:00 2010
New Revision: 24331
URL: https://svn.nixos.org/websvn/nix/?rev=24331&sc=1
Log:
hspell (another KDE dependency)
Added:
nixpkgs/trunk/pkgs/development/libraries/hspell/
nixpkgs/trunk/pkgs/development/libraries/hspell/default.nix
nixpkgs/trunk/pkgs/development/libraries/hspell/dicts.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/development/libraries/hspell/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/libraries/hspell/default.nix Sun Oct 17
18:44:00 2010 (r24331)
@@ -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
+ };
+}
Added: nixpkgs/trunk/pkgs/development/libraries/hspell/dicts.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/libraries/hspell/dicts.nix Sun Oct 17
18:44:00 2010 (r24331)
@@ -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'';
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Oct 17 18:43:50
2010 (r24330)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Oct 17 18:44:00
2010 (r24331)
@@ -3069,6 +3069,10 @@
heimdal = callPackage ../development/libraries/kerberos/heimdal.nix { };
+ hspell = callPackage ../development/libraries/hspell { };
+
+ hspellDicts = callPackage ../development/libraries/hspell/dicts.nix { };
+
hsqldb = callPackage ../development/libraries/java/hsqldb { };
hunspell = callPackage ../development/libraries/hunspell { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits