Skip to content

Commit

Permalink
Merge pull request #307483 from r-ryantm/auto-update/libgedit-gtksour…
Browse files Browse the repository at this point in the history
…ceview

gedit 47.0, libgedit-gtksourceview 299.2.1, libgedit-tepl 6.10.0
  • Loading branch information
bobby285271 committed Apr 30, 2024
2 parents 2b05ade + d062f06 commit 705bad7
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 33 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/editors/gedit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
, gtk3
, gtk-mac-integration
, glib
, tepl
, libgedit-amtk
, libgedit-gtksourceview
, libgedit-tepl
, libpeas
, libxml2
, gsettings-desktop-schemas
Expand All @@ -30,13 +30,13 @@

stdenv.mkDerivation rec {
pname = "gedit";
version = "46.2";
version = "47.0";

outputs = [ "out" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
sha256 = "wIZkErrRR+us4tKC/8u1oOmjBLIP1VZAvuIcgebVAe8=";
sha256 = "+kpZfjTHbUrJFDG1rm4ZHJbGsK8XAuCJmrNRme36G/o=";
};

patches = [
Expand Down Expand Up @@ -65,13 +65,13 @@ stdenv.mkDerivation rec {
];

buildInputs = [
tepl
glib
gsettings-desktop-schemas
gspell
gtk3
libgedit-amtk
libgedit-gtksourceview
libgedit-tepl
libpeas
] ++ lib.optionals stdenv.isDarwin [
gtk-mac-integration
Expand Down
17 changes: 12 additions & 5 deletions pkgs/applications/editors/gnome-latex/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, autoreconfHook
, gtk-doc
, vala
, gobject-introspection
, wrapGAppsHook
, gsettings-desktop-schemas
, gspell
, libgedit-amtk
, libgedit-gtksourceview
, libgedit-tepl
, libgee
, tepl
, gnome
, glib
, pkg-config
Expand All @@ -29,6 +29,14 @@ stdenv.mkDerivation rec {
sha256 = "1nVVY5sqFaiuvVTzNTVORP40MxQ648s8ynqOJvgRKto=";
};

patches = [
# Adapt for Tepl -> libgedit-tepl rename
(fetchpatch {
url = "https://gitlab.gnome.org/swilmet/gnome-latex/-/commit/41e532c427f43a5eed9081766963d6e29a9975a1.patch";
hash = "sha256-gu8o/er4mP92dE5gWg9lGx5JwTHB8ytk3EMNlwlIpq4=";
})
];

nativeBuildInputs = [
pkg-config
autoreconfHook
Expand All @@ -45,11 +53,10 @@ stdenv.mkDerivation rec {
glib
gsettings-desktop-schemas
gspell
libgedit-amtk
libgedit-gtksourceview
libgedit-tepl
libgee
libxml2
tepl
];

configureFlags = [
Expand All @@ -66,7 +73,7 @@ stdenv.mkDerivation rec {
};

meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/GNOME-LaTeX";
homepage = "https://gitlab.gnome.org/swilmet/gnome-latex";
description = "A LaTeX editor for the GNOME desktop";
maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.gpl3Plus;
Expand Down
55 changes: 55 additions & 0 deletions pkgs/by-name/li/libgedit-gfls/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ stdenv
, lib
, fetchFromGitHub
, docbook-xsl-nons
, gobject-introspection
, gtk-doc
, meson
, ninja
, pkg-config
, mesonEmulatorHook
, gtk3
, glib
}:

stdenv.mkDerivation (finalAttrs: {
pname = "libgedit-gfls";
version = "0.1.0";

outputs = [ "out" "dev" "devdoc" ];

src = fetchFromGitHub {
owner = "gedit-technology";
repo = "libgedit-gfls";
rev = finalAttrs.version;
hash = "sha256-tES8UGWcCT8lRd/fnOt9EN3wHkNSLRM4j8ONrCDPBK0=";
};

nativeBuildInputs = [
docbook-xsl-nons
gobject-introspection
gtk-doc
meson
ninja
pkg-config
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gtk3
];

propagatedBuildInputs = [
# Required by libgedit-gfls-1.pc
glib
];

meta = {
homepage = "https://github.com/gedit-technology/libgedit-gfls";
description = "Module dedicated to file loading and saving";
maintainers = with lib.maintainers; [ bobby285271 ];
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
};
})
4 changes: 2 additions & 2 deletions pkgs/by-name/li/libgedit-gtksourceview/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

stdenv.mkDerivation (finalAttrs: {
pname = "libgedit-gtksourceview";
version = "299.0.5";
version = "299.2.1";

outputs = [ "out" "dev" "devdoc" ];

src = fetchFromGitHub {
owner = "gedit-technology";
repo = "libgedit-gtksourceview";
rev = finalAttrs.version;
hash = "sha256-PQ7cpul9h1JzywDWm9YyD95B1ONSdUUk0EQJMEGoRN0=";
hash = "sha256-fmYIZvsB3opstpPEd9vahcD9yUZKPBpSIrlNDs+eCdw=";
};

patches = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
{ stdenv
, lib
, fetchurl
, fetchFromGitHub
, meson
, mesonEmulatorHook
, ninja
, gnome
, gobject-introspection
, gtk3
, icu
, libhandy
, libgedit-amtk
, libgedit-gfls
, libgedit-gtksourceview
, pkg-config
, gtk-doc
, docbook-xsl-nons
}:

stdenv.mkDerivation rec {
pname = "tepl";
version = "6.8.0";
pname = "libgedit-tepl";
version = "6.10.0";

outputs = [ "out" "dev" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "Rubl8b/bxS5ZVvBq3VdenHaXxnPVPTgD3+do9JC1YPA=";
src = fetchFromGitHub {
owner = "gedit-technology";
repo = "libgedit-tepl";
rev = version;
hash = "sha256-lGmOaDNu+iqwpeaP0AL28exoTqx1j03Z8gdhTBgk1i8=";
};

strictDeps = true;
Expand All @@ -40,28 +43,18 @@ stdenv.mkDerivation rec {

buildInputs = [
icu
libhandy
];

propagatedBuildInputs = [
gtk3
libgedit-amtk
libgedit-gfls
libgedit-gtksourceview
];

doCheck = false;
# TODO: one test fails because of
# (./test-file-metadata:20931): Tepl-WARNING **: 14:41:36.942: GVfs metadata
# is not supported. Fallback to TeplMetadataManager. Either GVfs is not
# correctly installed or GVfs metadata are not supported on this platform. In
# the latter case, you should configure Tepl with --disable-gvfs-metadata.

passthru.updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};

meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Tepl";
homepage = "https://github.com/gedit-technology/libgedit-tepl";
description = "Text editor product line";
maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.lgpl3Plus;
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ mapAliases ({
teleport_12 = throw "teleport 12 has been removed as it is EOL. Please upgrade to Teleport 13 or later"; # Added 2024-02-04
teleprompter = throw "teleprompter has been removed. reason: upstream dead and does not work with recent electron versions"; # Added 2024-03-14
tensile = throw "'tensile' has been replaced with 'rocmPackages.tensile'"; # Added 2023-10-08
tepl = libgedit-tepl; # Added 2024-04-29
testVersion = testers.testVersion; # Added 2022-04-20
tfplugindocs = terraform-plugin-docs; # Added 2023-11-01
thrift-0_10 = throw "'thrift-0_10' has been removed because it is impacted by security issues and not used in nixpkgs, move to 'thrift'"; # Added 2024-03-17
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24721,8 +24721,6 @@ with pkgs;
harfbuzz = harfbuzzFull;
};

tepl = callPackage ../development/libraries/tepl { };

termbench-pro = callPackage ../development/libraries/termbench-pro { fmt = fmt_8; };

telepathy-glib = callPackage ../development/libraries/telepathy/glib { };
Expand Down

0 comments on commit 705bad7

Please sign in to comment.