2023-07-19 19:55:41 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gi-docgen
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, enchant
|
|
|
|
, icu
|
2023-09-21 04:34:01 +02:00
|
|
|
, nix-update-script
|
2023-07-19 19:55:41 +02:00
|
|
|
}:
|
|
|
|
|
2023-09-21 04:34:01 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2023-07-19 19:55:41 +02:00
|
|
|
pname = "libspelling";
|
2024-03-07 13:12:53 +01:00
|
|
|
version = "0.2.1";
|
2023-07-19 19:55:41 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "chergert";
|
|
|
|
repo = "libspelling";
|
2023-09-21 04:34:01 +02:00
|
|
|
rev = version;
|
2024-03-07 13:12:53 +01:00
|
|
|
hash = "sha256-0OGcwPGWtYYf0XmvzXEaQgebBOW/6JWcDuF4MlQjCZQ=";
|
2023-07-19 19:55:41 +02: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-09-21 04:34:01 +02:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-07-19 19:55:41 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Spellcheck library for GTK 4";
|
|
|
|
homepage = "https://gitlab.gnome.org/chergert/libspelling";
|
|
|
|
license = licenses.lgpl21Plus;
|
2023-09-21 04:34:01 +02:00
|
|
|
changelog = "https://gitlab.gnome.org/chergert/libspelling/-/raw/${version}/NEWS";
|
2023-07-19 19:55:41 +02:00
|
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
|
|
};
|
|
|
|
}
|