nixpkgs/pkgs/development/libraries/gspell/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2022-08-06 22:48:42 +00:00
, buildPackages
, fetchurl
, pkg-config
, libxml2
2021-06-13 20:04:27 +00:00
, autoreconfHook
, gtk-doc
, glib
, gtk3
, enchant2
, icu
, vala
, gobject-introspection
, gnome
2021-06-13 20:04:27 +00:00
, gtk-mac-integration
}:
stdenv.mkDerivation rec {
2018-03-14 13:58:39 +00:00
pname = "gspell";
version = "1.12.0";
2018-03-14 13:58:39 +00:00
outputs = [ "out" "dev" ];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "QNKFDxu26HdSRvoeOUOLNsqvvbraHSihn6HKB+H/gq0=";
};
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
];
nativeBuildInputs = [
pkg-config
vala
gobject-introspection
libxml2
2021-06-13 20:04:27 +00:00
autoreconfHook
gtk-doc
2022-08-06 22:48:42 +00:00
glib
];
buildInputs = [
gtk3
icu
2021-06-13 20:04:27 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
gtk-mac-integration
];
propagatedBuildInputs = [
# required for pkg-config
enchant2
];
2022-08-06 22:48:42 +00:00
configureFlags = [
"GLIB_COMPILE_RESOURCES=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
"GLIB_MKENUMS=${lib.getDev buildPackages.glib}/bin/glib-mkenums"
];
2018-03-14 13:58:39 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-14 13:58:39 +00:00
packageName = pname;
versionPolicy = "none";
2018-03-14 13:58:39 +00:00
};
};
meta = with lib; {
description = "A spell-checking library for GTK applications";
homepage = "https://wiki.gnome.org/Projects/gspell";
2018-02-25 20:24:59 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2021-06-13 20:04:27 +00:00
platforms = platforms.unix;
};
}