libgedit-gtksourceview: init at 299.0.5

Version scheme is now documented in upstream README.md, which suggests
that even 299.x.y can be stable as long as minor version is even.

+80
+11
pkgs/by-name/li/libgedit-gtksourceview/nix-share-path.patch
··· 1 + --- a/gtksourceview/gtksourceutils.c 2 + +++ b/gtksourceview/gtksourceutils.c 3 + @@ -232,6 +232,8 @@ 4 + NULL)); 5 + } 6 + 7 + + g_ptr_array_add (dirs, g_build_filename (DATADIR, GSV_DATA_SUBDIR, basename, NULL)); 8 + + 9 + g_ptr_array_add (dirs, NULL); 10 + 11 + return (gchar **) g_ptr_array_free (dirs, FALSE);
+69
pkgs/by-name/li/libgedit-gtksourceview/package.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , docbook-xsl-nons 5 + , gobject-introspection 6 + , gtk-doc 7 + , meson 8 + , ninja 9 + , pkg-config 10 + , libxml2 11 + , glib 12 + , gtk3 13 + , shared-mime-info 14 + , gitUpdater 15 + }: 16 + 17 + stdenv.mkDerivation (finalAttrs: { 18 + pname = "libgedit-gtksourceview"; 19 + version = "299.0.5"; 20 + 21 + outputs = [ "out" "dev" "devdoc" ]; 22 + 23 + src = fetchFromGitHub { 24 + owner = "gedit-technology"; 25 + repo = "libgedit-gtksourceview"; 26 + rev = finalAttrs.version; 27 + hash = "sha256-PQ7cpul9h1JzywDWm9YyD95B1ONSdUUk0EQJMEGoRN0="; 28 + }; 29 + 30 + patches = [ 31 + # By default, the library loads syntaxes from XDG_DATA_DIRS and user directory 32 + # but not from its own datadr (it assumes it will be in XDG_DATA_DIRS). 33 + # Since this is not generally true with Nix, let’s add $out/share unconditionally. 34 + ./nix-share-path.patch 35 + ]; 36 + 37 + nativeBuildInputs = [ 38 + docbook-xsl-nons 39 + gobject-introspection 40 + gtk-doc 41 + meson 42 + ninja 43 + pkg-config 44 + ]; 45 + 46 + buildInputs = [ 47 + libxml2 48 + ]; 49 + 50 + propagatedBuildInputs = [ 51 + # Required by libgedit-gtksourceview-300.pc 52 + glib 53 + gtk3 54 + # Used by gtk_source_language_manager_guess_language 55 + shared-mime-info 56 + ]; 57 + 58 + passthru.updateScript = gitUpdater { 59 + odd-unstable = true; 60 + }; 61 + 62 + meta = with lib; { 63 + description = "Source code editing widget for GTK"; 64 + homepage = "https://github.com/gedit-technology/libgedit-gtksourceview"; 65 + license = licenses.lgpl21Plus; 66 + maintainers = with maintainers; [ bobby285271 ]; 67 + platforms = platforms.linux; 68 + }; 69 + })