nixpkgs/pkgs/development/libraries/gspell/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

81 lines
1.8 KiB
Nix

{ stdenv
, lib
, buildPackages
, fetchurl
, pkg-config
, libxml2
, autoreconfHook
, gtk-doc
, glib
, gtk3
, enchant2
, icu
, vala
, gobject-introspection
, gnome
}:
stdenv.mkDerivation rec {
pname = "gspell";
version = "1.12.2";
outputs = [ "out" "dev" ];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "tOmTvYJ+TOtqdwsbXolQ/OO+nIsrDL6yL9+ZKAjdITk=";
};
patches = [
# Extracted from: https://github.com/Homebrew/homebrew-core/blob/2a27fb86b08afc7ae6dff79cf64aafb8ecc93275/Formula/gspell.rb#L125-L149
# Dropped the GTK_MAC_* changes since gtk-mac-integration is not needed since 1.12.1
./0001-Darwin-build-fix.patch
];
nativeBuildInputs = [
pkg-config
vala
gobject-introspection
libxml2
autoreconfHook
gtk-doc
glib
];
buildInputs = [
gtk3
icu
vala # for share/vala/Makefile.vapigen (PKG_CONFIG_VAPIGEN_VAPIGEN)
];
propagatedBuildInputs = [
# required for pkg-config
enchant2
];
configureFlags = [
"GLIB_COMPILE_RESOURCES=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
"GLIB_MKENUMS=${lib.getDev buildPackages.glib}/bin/glib-mkenums"
"PKG_CONFIG_VAPIGEN_VAPIGEN=${lib.getBin buildPackages.vala}/bin/vapigen"
"--enable-introspection=yes"
"--enable-vala=yes"
];
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;
};
}