2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-11-17 15:23:16 +00:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-11-17 15:23:16 +00:00
|
|
|
, libxml2
|
2021-06-13 20:04:27 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
2020-11-17 15:23:16 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, enchant2
|
|
|
|
, icu
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-06-13 20:04:27 +00:00
|
|
|
, gtk-mac-integration
|
2020-11-17 15:23:16 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2020-11-17 15:23:16 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 13:58:39 +00:00
|
|
|
pname = "gspell";
|
2020-11-17 15:23:16 +00:00
|
|
|
version = "1.9.1";
|
2018-03-14 13:58:39 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
outputBin = "dev";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-17 15:23:16 +00:00
|
|
|
sha256 = "1pdb4gbjrs8mk6r0ipw5vxyvzav1wvkjq46kiq53r3nyznfpdfyw";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-06-13 20:04:27 +00:00
|
|
|
patches = [
|
|
|
|
# Extracted from: https://github.com/Homebrew/homebrew-core/blob/2a27fb86b08afc7ae6dff79cf64aafb8ecc93275/Formula/gspell.rb#L125-L149
|
|
|
|
./0001-Darwin-build-fix.patch
|
|
|
|
];
|
|
|
|
|
2020-11-17 15:23:16 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-11-17 15:23:16 +00:00
|
|
|
vala
|
|
|
|
gobject-introspection
|
|
|
|
libxml2
|
2021-06-13 20:04:27 +00:00
|
|
|
autoreconfHook
|
|
|
|
gtk-doc
|
2020-11-17 15:23:16 +00:00
|
|
|
];
|
2017-06-25 16:59:23 +00:00
|
|
|
|
2020-11-17 15:23:16 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
icu
|
2021-06-13 20:04:27 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
gtk-mac-integration
|
2020-11-17 15:23:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
# required for pkg-config
|
2020-11-17 15:23:16 +00:00
|
|
|
enchant2
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-14 13:58:39 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-14 13:58:39 +00:00
|
|
|
packageName = pname;
|
2020-11-17 15:23:16 +00:00
|
|
|
versionPolicy = "none";
|
2018-03-14 13:58:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "A spell-checking library for GTK applications";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/gspell";
|
2018-02-25 20:24:59 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2021-06-13 20:04:27 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|