Files
nixpkgs/pkgs/by-name/li/libspelling/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
gobject-introspection,
vala,
gi-docgen,
glib,
gtk4,
gtksourceview5,
enchant,
icu,
libsysprof-capture,
gnome,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libspelling";
version = "0.4.9";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/libspelling/${lib.versions.majorMinor finalAttrs.version}/libspelling-${finalAttrs.version}.tar.xz";
hash = "sha256-0JP9Na4PHJj7WIdlBSh/wKiF5H2p0kEdbXzVlfNNTr8=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gi-docgen
];
buildInputs = [
enchant
icu
libsysprof-capture
];
propagatedBuildInputs = [
# These were moved from buildInputs because they are
# listed in `Requires` key of `libspelling-1.pc`
glib
gtk4
gtksourceview5
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru.updateScript = gnome.updateScript {
packageName = "libspelling";
};
meta = {
description = "Spellcheck library for GTK 4";
homepage = "https://gitlab.gnome.org/GNOME/libspelling";
license = lib.licenses.lgpl21Plus;
changelog = "https://gitlab.gnome.org/GNOME/libspelling/-/raw/${finalAttrs.version}/NEWS";
maintainers = with lib.maintainers; [ chuangzhu ];
teams = [ lib.teams.gnome ];
};
})