about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gtkspell
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gtkspell')
-rw-r--r--nixpkgs/pkgs/development/libraries/gtkspell/3.nix30
-rw-r--r--nixpkgs/pkgs/development/libraries/gtkspell/default.nix53
2 files changed, 83 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gtkspell/3.nix b/nixpkgs/pkgs/development/libraries/gtkspell/3.nix
new file mode 100644
index 000000000000..3c7a6a3b3b23
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/gtkspell/3.nix
@@ -0,0 +1,30 @@
+{lib, stdenv, fetchurl, gtk3, aspell, pkg-config, enchant, isocodes, intltool, gobject-introspection, vala}:
+
+stdenv.mkDerivation rec {
+  pname = "gtkspell";
+  version = "3.0.10";
+
+  outputs = [ "out" "dev" ];
+
+  src = fetchurl {
+    url = "mirror://sourceforge/gtkspell/gtkspell3-${version}.tar.xz";
+    sha256 = "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h";
+  };
+
+  nativeBuildInputs = [ pkg-config intltool gobject-introspection vala ];
+  buildInputs = [ aspell gtk3 enchant isocodes ];
+  propagatedBuildInputs = [ enchant ];
+
+  configureFlags = [
+    "--enable-introspection"
+    "--enable-vala"
+  ];
+
+  meta = with lib; {
+    homepage = "https://gtkspell.sourceforge.net/";
+    description = "Word-processor-style highlighting GtkTextView widget";
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ ];
+  };
+}
diff --git a/nixpkgs/pkgs/development/libraries/gtkspell/default.nix b/nixpkgs/pkgs/development/libraries/gtkspell/default.nix
new file mode 100644
index 000000000000..eb8b1363c32b
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/gtkspell/default.nix
@@ -0,0 +1,53 @@
+{ stdenv
+, lib
+, fetchurl
+, fetchpatch
+, autoreconfHook
+, docbook_xsl
+, gtk-doc
+, intltool
+, pkg-config
+, aspell
+, enchant
+, gtk2
+}:
+
+stdenv.mkDerivation rec {
+  pname = "gtkspell";
+  version = "2.0.16";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/gtkspell/${pname}-${version}.tar.gz";
+    sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg";
+  };
+
+  patches = [
+    # Build with enchant 2
+    # https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk
+    (fetchpatch {
+      url = "https://github.com/archlinux/svntogit-packages/raw/17fb30b5196db378c18e7c115f28e97b962b95ff/trunk/enchant-2.diff";
+      sha256 = "0d9409bnapwzwhnfpz3dvl6qalskqa4lzmhrmciazsypbw3ry5rf";
+    })
+  ];
+
+  nativeBuildInputs = [
+    autoreconfHook
+    docbook_xsl
+    gtk-doc
+    intltool
+    pkg-config
+  ];
+
+  buildInputs = [
+    aspell
+    enchant
+    gtk2
+  ];
+
+  meta = with lib; {
+    description = "Word-processor-style highlighting and replacement of misspelled words";
+    homepage = "https://gtkspell.sourceforge.net";
+    platforms = platforms.unix;
+    license = licenses.gpl2;
+  };
+}