at 23.11-beta 63 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4, meson 5, ninja 6, pkg-config 7, gobject-introspection 8, vala 9, gi-docgen 10, glib 11, gtk4 12, gtksourceview5 13, enchant 14, icu 15, nix-update-script 16}: 17 18stdenv.mkDerivation rec { 19 pname = "libspelling"; 20 version = "0.2.0"; 21 22 outputs = [ "out" "dev" "devdoc" ]; 23 24 src = fetchFromGitLab { 25 domain = "gitlab.gnome.org"; 26 owner = "chergert"; 27 repo = "libspelling"; 28 rev = version; 29 hash = "sha256-OOSQgdtnEx6/5yKwavCGdY/5L0Mr3XW0Srmd42ZTdUk="; 30 }; 31 32 nativeBuildInputs = [ 33 meson 34 ninja 35 pkg-config 36 gobject-introspection 37 vala 38 gi-docgen 39 ]; 40 41 buildInputs = [ 42 glib 43 gtk4 44 gtksourceview5 45 enchant 46 icu 47 ]; 48 49 postFixup = '' 50 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 51 moveToOutput "share/doc" "$devdoc" 52 ''; 53 54 passthru.updateScript = nix-update-script { }; 55 56 meta = with lib; { 57 description = "Spellcheck library for GTK 4"; 58 homepage = "https://gitlab.gnome.org/chergert/libspelling"; 59 license = licenses.lgpl21Plus; 60 changelog = "https://gitlab.gnome.org/chergert/libspelling/-/raw/${version}/NEWS"; 61 maintainers = with maintainers; [ chuangzhu ]; 62 }; 63}