2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gi-docgen
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, enchant
|
|
|
|
, icu
|
2023-10-09 19:29:22 +00:00
|
|
|
, nix-update-script
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "libspelling";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.1";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "chergert";
|
|
|
|
repo = "libspelling";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-0OGcwPGWtYYf0XmvzXEaQgebBOW/6JWcDuF4MlQjCZQ=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gi-docgen
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
enchant
|
|
|
|
icu
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Spellcheck library for GTK 4";
|
|
|
|
homepage = "https://gitlab.gnome.org/chergert/libspelling";
|
|
|
|
license = licenses.lgpl21Plus;
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/chergert/libspelling/-/raw/${version}/NEWS";
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
|
|
};
|
|
|
|
}
|