From 3bdcdae69dbb0b9f66a53991ec636ef3ccbdbe8c Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 7 Aug 2023 07:54:29 +0000 Subject: [PATCH] =?UTF-8?q?gnome.gnome-initial-setup:=2044.0=20=E2=86=92?= =?UTF-8?q?=2045.beta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/compare/44.0...45.beta Install dconf presets: https://github.com/GNOME/gnome-initial-setup/commit/0c607f104e7542b95e33716134da65cb03093e12 Use tecla: https://github.com/GNOME/gnome-initial-setup/commit/3dcb8709ba18b0ed1838c489638a736cddab7c7c Changelog-reviewed-by: Bobby Rong Changelog-reviewed-by: Jan Tojnar --- .../desktops/gnome/gnome-initial-setup.nix | 3 +++ .../gnome-initial-setup/0001-fix-paths.patch | 17 ++++------------- .../gnome/core/gnome-initial-setup/default.nix | 11 +++++++---- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/nixos/modules/services/desktops/gnome/gnome-initial-setup.nix b/nixos/modules/services/desktops/gnome/gnome-initial-setup.nix index f24e6f1eb155..6eaf861e4974 100644 --- a/nixos/modules/services/desktops/gnome/gnome-initial-setup.nix +++ b/nixos/modules/services/desktops/gnome/gnome-initial-setup.nix @@ -93,6 +93,9 @@ in "gnome-initial-setup.service" ]; + programs.dconf.profiles.gnome-initial-setup.databases = [ + "${pkgs.gnome.gnome-initial-setup}/share/gnome-initial-setup/initial-setup-dconf-defaults" + ]; }; } diff --git a/pkgs/desktops/gnome/core/gnome-initial-setup/0001-fix-paths.patch b/pkgs/desktops/gnome/core/gnome-initial-setup/0001-fix-paths.patch index 232375952253..f3cd9f6f0427 100644 --- a/pkgs/desktops/gnome/core/gnome-initial-setup/0001-fix-paths.patch +++ b/pkgs/desktops/gnome/core/gnome-initial-setup/0001-fix-paths.patch @@ -17,11 +17,11 @@ index 196abf6..613d0e5 100644 return TRUE; if (variant[0]) -- commandline = g_strdup_printf ("gkbd-keyboard-display -l \"%s\t%s\"", layout, variant); -+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l \"%s\t%s\"", layout, variant); +- commandline = g_strdup_printf ("tecla \"%s+%s\"", layout, variant); ++ commandline = g_strdup_printf ("@tecla@/bin/tecla \"%s+%s\"", layout, variant); else -- commandline = g_strdup_printf ("gkbd-keyboard-display -l %s", layout); -+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l %s", layout); +- commandline = g_strdup_printf ("tecla %s", layout); ++ commandline = g_strdup_printf ("@tecla@/bin/tecla %s", layout); g_spawn_command_line_async (commandline, NULL); g_free (commandline); @@ -38,15 +38,6 @@ diff --git a/gnome-initial-setup/pages/timezone/tz.h b/gnome-initial-setup/pages index a2376f8..5cb7bc9 100644 --- a/gnome-initial-setup/pages/timezone/tz.h +++ b/gnome-initial-setup/pages/timezone/tz.h -@@ -4,7 +4,7 @@ - * Copyright (C) 2000-2001 Ximian, Inc. - * - * Authors: Hans Petter Jansson -- * -+ * - * Largely based on Michael Fulbright's work on Anaconda. - * - * This program is free software; you can redistribute it and/or modify @@ -28,7 +28,7 @@ G_BEGIN_DECLS diff --git a/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix b/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix index 31950375369c..8292127318f6 100644 --- a/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix +++ b/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix @@ -2,6 +2,7 @@ , lib , fetchurl , substituteAll +, dconf , gettext , meson , ninja @@ -32,27 +33,29 @@ , libadwaita , libnma-gtk4 , tzdata -, libgnomekbd +, gnome-tecla , gsettings-desktop-schemas }: stdenv.mkDerivation rec { pname = "gnome-initial-setup"; - version = "44.0"; + version = "45.beta"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "WTz8bcj4KphnG5TANbl9vojvVucIeAsq0dIyTk0Eu/8="; + sha256 = "LK9/kq/ojZ2Hw2sc3i4zS04A6XO0UFg5Omo8EPUOBmY="; }; patches = [ (substituteAll { src = ./0001-fix-paths.patch; - inherit tzdata libgnomekbd; + inherit tzdata; + tecla = gnome-tecla; }) ]; nativeBuildInputs = [ + dconf gettext meson ninja