depot/third_party/nixpkgs/pkgs/by-name/gs/gspell/package.nix

77 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchurl,
docbook-xsl-nons,
glib,
gobject-introspection,
gtk-doc,
meson,
ninja,
pkg-config,
vala,
mesonEmulatorHook,
gtk3,
icu,
enchant2,
gnome,
}:
stdenv.mkDerivation rec {
pname = "gspell";
version = "1.14.0";
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "ZOodjp7cHCW0WpIOgNr2dVnRhm/81/hDL+z+ptD+iJc=";
};
nativeBuildInputs =
[
docbook-xsl-nons
glib # glib-mkenums
gobject-introspection
gtk-doc
meson
ninja
pkg-config
vala
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [
gtk3
icu
];
propagatedBuildInputs = [
# required for pkg-config
enchant2
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with lib; {
description = "Spell-checking library for GTK applications";
mainProgram = "gspell-app1";
homepage = "https://gitlab.gnome.org/GNOME/gspell";
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}