Merge pull request #277896 from bobby285271/upd/amtk

libgedit-amtk: 5.6.1 → 5.8.0, renamed from amtk
This commit is contained in:
Bobby Rong 2024-01-01 17:26:19 +08:00 committed by GitHub
commit b0964ea74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 129 additions and 40 deletions

View File

@ -8,18 +8,17 @@
, gtk3 , gtk3
, gtk-mac-integration , gtk-mac-integration
, glib , glib
, amtk
, tepl , tepl
, libgedit-amtk
, libgedit-gtksourceview
, libpeas , libpeas
, libxml2 , libxml2
, gtksourceview4
, gsettings-desktop-schemas , gsettings-desktop-schemas
, wrapGAppsHook , wrapGAppsHook
, gtk-doc , gtk-doc
, gobject-introspection , gobject-introspection
, docbook-xsl-nons , docbook-xsl-nons
, ninja , ninja
, libsoup
, gnome , gnome
, gspell , gspell
, perl , perl
@ -30,13 +29,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gedit"; pname = "gedit";
version = "44.2"; version = "46.1";
outputs = [ "out" "devdoc" ]; outputs = [ "out" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz"; url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
sha256 = "O7sbN3XUwnfa9UqqtEsOuDpOsfCfA5GAAEHJ5WiT7BE="; sha256 = "oabjfwQXZd/3InofVXi29J+q8Bax4X6GnK9b+5TGqk4=";
}; };
patches = [ patches = [
@ -64,15 +63,14 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
amtk
tepl tepl
glib glib
gsettings-desktop-schemas gsettings-desktop-schemas
gspell gspell
gtk3 gtk3
gtksourceview4 libgedit-amtk
libgedit-gtksourceview
libpeas libpeas
libsoup
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
gtk-mac-integration gtk-mac-integration
]; ];
@ -96,7 +94,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Gedit"; homepage = "https://wiki.gnome.org/Apps/Gedit";
description = "Former GNOME text editor"; description = "Former GNOME text editor";
maintainers = [ ]; maintainers = with maintainers; [ bobby285271 ];
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.unix; platforms = platforms.unix;
mainProgram = "gedit"; mainProgram = "gedit";

View File

@ -8,10 +8,10 @@
, wrapGAppsHook , wrapGAppsHook
, gsettings-desktop-schemas , gsettings-desktop-schemas
, gspell , gspell
, gtksourceview4 , libgedit-amtk
, libgedit-gtksourceview
, libgee , libgee
, tepl , tepl
, amtk
, gnome , gnome
, glib , glib
, pkg-config , pkg-config
@ -21,12 +21,12 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "3.44.0"; version = "3.46.0";
pname = "gnome-latex"; pname = "gnome-latex";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "iL1TQL0ox+0Bx5ZqOgBzK72QJ3PfWsZZvmrRGAap50Q="; sha256 = "1nVVY5sqFaiuvVTzNTVORP40MxQ648s8ynqOJvgRKto=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -41,12 +41,12 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
amtk
gnome.adwaita-icon-theme gnome.adwaita-icon-theme
glib glib
gsettings-desktop-schemas gsettings-desktop-schemas
gspell gspell
gtksourceview4 libgedit-amtk
libgedit-gtksourceview
libgee libgee
libxml2 libxml2
tepl tepl
@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/GNOME-LaTeX"; homepage = "https://wiki.gnome.org/Apps/GNOME-LaTeX";
description = "A LaTeX editor for the GNOME desktop"; description = "A LaTeX editor for the GNOME desktop";
maintainers = [ maintainers.manveru ]; maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
mainProgram = "gnome-latex"; mainProgram = "gnome-latex";

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchFromGitHub
, glib
, gtk3 , gtk3
, meson , meson
, mesonEmulatorHook , mesonEmulatorHook
@ -9,20 +10,22 @@
, gobject-introspection , gobject-introspection
, gtk-doc , gtk-doc
, docbook-xsl-nons , docbook-xsl-nons
, gnome , gitUpdater
, dbus , dbus
, xvfb-run , xvfb-run
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "amtk"; pname = "libgedit-amtk";
version = "5.6.1"; version = "5.8.0";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchFromGitHub {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; owner = "gedit-technology";
sha256 = "1QEVuFyHKqwpaTS17nJqP6FWxvWtltJ+Dt0Kpa0XMig="; repo = "libgedit-amtk";
rev = version;
hash = "sha256-U77/KMZw9k9ukebCXVXAsCa4uJaTgw9irfZ/l0303kk=";
}; };
strictDeps = true; strictDeps = true;
@ -30,7 +33,6 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
pkg-config pkg-config
dbus
gobject-introspection gobject-introspection
gtk-doc gtk-doc
docbook-xsl-nons docbook-xsl-nons
@ -38,27 +40,36 @@ stdenv.mkDerivation rec {
mesonEmulatorHook mesonEmulatorHook
]; ];
buildInputs = [ propagatedBuildInputs = [
# Required by libgedit-amtk-5.pc
glib
gtk3 gtk3
]; ];
nativeCheckInputs = [
dbus # For dbus-run-session
];
doCheck = stdenv.isLinux; doCheck = stdenv.isLinux;
checkPhase = '' checkPhase = ''
runHook preCheck
export NO_AT_BRIDGE=1 export NO_AT_BRIDGE=1
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \ ${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \ --config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs meson test --print-errorlogs
runHook postCheck
''; '';
passthru.updateScript = gnome.updateScript { passthru.updateScript = gitUpdater {
packageName = pname; odd-unstable = true;
versionPolicy = "none";
}; };
meta = with lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Amtk"; homepage = "https://github.com/gedit-technology/libgedit-amtk";
description = "Actions, Menus and Toolbars Kit for GTK applications"; description = "Actions, Menus and Toolbars Kit for GTK applications";
maintainers = [ maintainers.manveru ]; maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };

View File

@ -0,0 +1,11 @@
--- a/gtksourceview/gtksourceutils.c
+++ b/gtksourceview/gtksourceutils.c
@@ -232,6 +232,8 @@
NULL));
}
+ g_ptr_array_add (dirs, g_build_filename (DATADIR, GSV_DATA_SUBDIR, basename, NULL));
+
g_ptr_array_add (dirs, NULL);
return (gchar **) g_ptr_array_free (dirs, FALSE);

View File

@ -0,0 +1,69 @@
{ stdenv
, lib
, fetchFromGitHub
, docbook-xsl-nons
, gobject-introspection
, gtk-doc
, meson
, ninja
, pkg-config
, libxml2
, glib
, gtk3
, shared-mime-info
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libgedit-gtksourceview";
version = "299.0.5";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitHub {
owner = "gedit-technology";
repo = "libgedit-gtksourceview";
rev = finalAttrs.version;
hash = "sha256-PQ7cpul9h1JzywDWm9YyD95B1ONSdUUk0EQJMEGoRN0=";
};
patches = [
# By default, the library loads syntaxes from XDG_DATA_DIRS and user directory
# but not from its own datadr (it assumes it will be in XDG_DATA_DIRS).
# Since this is not generally true with Nix, lets add $out/share unconditionally.
./nix-share-path.patch
];
nativeBuildInputs = [
docbook-xsl-nons
gobject-introspection
gtk-doc
meson
ninja
pkg-config
];
buildInputs = [
libxml2
];
propagatedBuildInputs = [
# Required by libgedit-gtksourceview-300.pc
glib
gtk3
# Used by gtk_source_language_manager_guess_language
shared-mime-info
];
passthru.updateScript = gitUpdater {
odd-unstable = true;
};
meta = with lib; {
description = "Source code editing widget for GTK";
homepage = "https://github.com/gedit-technology/libgedit-gtksourceview";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ bobby285271 ];
platforms = platforms.linux;
};
})

View File

@ -1,14 +1,15 @@
{ lib, stdenv { stdenv
, lib
, fetchurl , fetchurl
, meson , meson
, mesonEmulatorHook , mesonEmulatorHook
, ninja , ninja
, amtk
, gnome , gnome
, gobject-introspection , gobject-introspection
, gtk3 , gtk3
, gtksourceview4
, icu , icu
, libgedit-amtk
, libgedit-gtksourceview
, pkg-config , pkg-config
, gtk-doc , gtk-doc
, docbook-xsl-nons , docbook-xsl-nons
@ -16,13 +17,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tepl"; pname = "tepl";
version = "6.4.0"; version = "6.8.0";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "XlayBmnQzwX6HWS1jIw0LFkVgSLcUYEA0JPVnfm4cyE="; sha256 = "Rubl8b/bxS5ZVvBq3VdenHaXxnPVPTgD3+do9JC1YPA=";
}; };
strictDeps = true; strictDeps = true;
@ -42,9 +43,9 @@ stdenv.mkDerivation rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
amtk
gtksourceview4
gtk3 gtk3
libgedit-amtk
libgedit-gtksourceview
]; ];
doCheck = false; doCheck = false;
@ -62,7 +63,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Tepl"; homepage = "https://wiki.gnome.org/Projects/Tepl";
description = "Text editor product line"; description = "Text editor product line";
maintainers = [ maintainers.manveru ]; maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.lgpl3Plus; license = licenses.lgpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };

View File

@ -67,6 +67,7 @@ mapAliases ({
alsaPlugins = alsa-plugins; # Added 2021-06-10 alsaPlugins = alsa-plugins; # Added 2021-06-10
alsaTools = alsa-tools; # Added 2021-06-10 alsaTools = alsa-tools; # Added 2021-06-10
alsaUtils = alsa-utils; # Added 2021-06-10 alsaUtils = alsa-utils; # Added 2021-06-10
amtk = throw "amtk has been renamed to libgedit-amtk and is now maintained by Gedit Technology"; # Added 2023-12-31
angelfish = libsForQt5.kdeGear.angelfish; # Added 2021-10-06 angelfish = libsForQt5.kdeGear.angelfish; # Added 2021-10-06
ansible_2_12 = throw "Ansible 2.12 goes end of life in 2023/05 and can't be supported throughout the 23.05 release cycle"; # Added 2023-05-16 ansible_2_12 = throw "Ansible 2.12 goes end of life in 2023/05 and can't be supported throughout the 23.05 release cycle"; # Added 2023-05-16
apacheAnt_1_9 = throw "Ant 1.9 has been removed since it's not used in nixpkgs anymore"; # Added 2023-11-12 apacheAnt_1_9 = throw "Ant 1.9 has been removed since it's not used in nixpkgs anymore"; # Added 2023-11-12

View File

@ -18127,8 +18127,6 @@ with pkgs;
h3 = h3_3; h3 = h3_3;
amtk = callPackage ../development/libraries/amtk { };
avrlibc = callPackage ../development/misc/avr/libc { }; avrlibc = callPackage ../development/misc/avr/libc { };
avrlibcCross = callPackage ../development/misc/avr/libc { avrlibcCross = callPackage ../development/misc/avr/libc {
stdenv = crossLibcStdenv; stdenv = crossLibcStdenv;