summary refs log tree commit diff
path: root/pkgs/development/libraries/gspell
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-06-29 15:49:53 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-06-29 18:41:59 +0200
commiteee65657831ddf0fca1c01e6ea2e6b6759ae80c4 (patch)
tree40308890c6dca67ffb865c4a3e85485ce609d6ed /pkgs/development/libraries/gspell
parent8e78a9a68fea58147541444e9cd57d7043be3ee7 (diff)
downloadnixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar.gz
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar.bz2
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar.lz
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar.xz
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.tar.zst
nixpkgs-eee65657831ddf0fca1c01e6ea2e6b6759ae80c4.zip
gspell: move to top-level
Diffstat (limited to 'pkgs/development/libraries/gspell')
-rw-r--r--pkgs/development/libraries/gspell/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gspell/default.nix b/pkgs/development/libraries/gspell/default.nix
new file mode 100644
index 00000000000..42c5f88e7f3
--- /dev/null
+++ b/pkgs/development/libraries/gspell/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl, pkgconfig, libxml2, glib, gtk3, enchant2, isocodes, vala, gobjectIntrospection, gnome3 }:
+
+let
+  pname = "gspell";
+  version = "1.8.0";
+in stdenv.mkDerivation rec {
+  name = "${pname}-${version}";
+
+  outputs = [ "out" "dev" ];
+  outputBin = "dev";
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
+    sha256 = "0ickabxngl567lv1jax4fasr5brq29hg04ymaay47pjfp32w4zqv";
+  };
+
+  propagatedBuildInputs = [ enchant2 ]; # required for pkgconfig
+
+  nativeBuildInputs = [ pkgconfig vala gobjectIntrospection libxml2 ];
+  buildInputs = [ glib gtk3 isocodes ];
+
+  passthru = {
+    updateScript = gnome3.updateScript {
+      packageName = pname;
+    };
+  };
+
+  meta = with stdenv.lib; {
+    description = "A spell-checking library for GTK+ applications";
+    homepage = https://wiki.gnome.org/Projects/gspell;
+    license = licenses.lgpl21Plus;
+    maintainers = gnome3.maintainers;
+    platforms = platforms.linux;
+  };
+}