mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, vala
|
|
, gi-docgen
|
|
, glib
|
|
, gtk4
|
|
, gtksourceview5
|
|
, enchant
|
|
, icu
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libspelling";
|
|
version = "0.2.0";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "chergert";
|
|
repo = "libspelling";
|
|
rev = version;
|
|
hash = "sha256-OOSQgdtnEx6/5yKwavCGdY/5L0Mr3XW0Srmd42ZTdUk=";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Spellcheck library for GTK 4";
|
|
homepage = "https://gitlab.gnome.org/chergert/libspelling";
|
|
license = licenses.lgpl21Plus;
|
|
changelog = "https://gitlab.gnome.org/chergert/libspelling/-/raw/${version}/NEWS";
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
};
|
|
}
|