summary refs log tree commit diff
path: root/pkgs/development/libraries/enchant
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-03-14 14:56:19 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-03-22 07:46:48 +0100
commit4f338f0eee21d5ea6317220f3337cbc8634dec71 (patch)
tree65f14c525fddeea095e53c63796e4e6fd91573c8 /pkgs/development/libraries/enchant
parentfead86590d330d822b01c37dec7a5a11ed6b0b4d (diff)
downloadnixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar.gz
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar.bz2
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar.lz
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar.xz
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.tar.zst
nixpkgs-4f338f0eee21d5ea6317220f3337cbc8634dec71.zip
enchant2: init at 2.2.3
Diffstat (limited to 'pkgs/development/libraries/enchant')
-rw-r--r--pkgs/development/libraries/enchant/2.x.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/enchant/2.x.nix b/pkgs/development/libraries/enchant/2.x.nix
new file mode 100644
index 00000000000..458b23c33e9
--- /dev/null
+++ b/pkgs/development/libraries/enchant/2.x.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, aspell, pkgconfig, glib, hunspell, hspell }:
+
+let
+  version = "2.2.3";
+  pname = "enchant";
+in stdenv.mkDerivation rec {
+  name = "${pname}-${version}";
+
+  outputs = [ "out" "dev" ];
+
+  src = fetchurl {
+    url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${name}.tar.gz";
+    sha256 = "0v87p1ls0gym95qirijpclk650sjbkcjjl6ssk059zswcwaykn5b";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ glib hunspell ];
+  propagatedBuildInputs = [ hspell aspell ]; # libtool puts it to la file
+
+  meta = with stdenv.lib; {
+    description = "Generic spell checking library";
+    homepage = https://abiword.github.io/enchant/;
+    license = licenses.lgpl21Plus; # with extra provision for non-free checkers
+    maintainers = with maintainers; [ jtojnar ];
+    platforms = platforms.unix;
+  };
+}