diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-11-21 20:49:59 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-11-21 20:49:59 +0100 |
commit | 35a3cb94c6ef119a7049d8c742b07ecb23ad76a0 (patch) | |
tree | ed53b664eda77c2742f655a11b13eb22f9314e68 /pkgs/applications/misc | |
parent | 489d27a23593088f2e2c1ce99ac5b98816996375 (diff) | |
parent | 0edd45851f4dad51e068de409028d795e7a0b93a (diff) |
Merge #269032: GNOME: 44 -> 45
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/gnome-tecla/default.nix | 55 | ||||
-rw-r--r-- | pkgs/applications/misc/gnome-usage/default.nix | 29 | ||||
-rw-r--r-- | pkgs/applications/misc/orca/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/misc/orca/fix-paths.patch | 48 |
4 files changed, 98 insertions, 38 deletions
diff --git a/pkgs/applications/misc/gnome-tecla/default.nix b/pkgs/applications/misc/gnome-tecla/default.nix new file mode 100644 index 0000000000000..43f77763f1291 --- /dev/null +++ b/pkgs/applications/misc/gnome-tecla/default.nix @@ -0,0 +1,55 @@ +{ stdenv +, lib +, fetchurl +, meson +, ninja +, pkg-config +, wrapGAppsHook4 +, glib +, gtk4 +, libadwaita +, libxkbcommon +, wayland +, gnome +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tecla"; + version = "45.0"; + + src = fetchurl { + url = "mirror://gnome/sources/tecla/${lib.versions.major finalAttrs.version}/tecla-${finalAttrs.version}.tar.xz"; + hash = "sha256-XAK7QBmxz/tWY9phB1A+/4U4Nqh4PdRwXdBKSfetwls="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + glib + gtk4 + libadwaita + libxkbcommon + wayland + ]; + + passthru = { + updateScript = gnome.updateScript { + attrPath = "gnome-tecla"; + packageName = "tecla"; + }; + }; + + meta = with lib; { + description = "Keyboard layout viewer"; + homepage = "https://gitlab.gnome.org/GNOME/tecla"; + license = licenses.gpl2Plus; + maintainers = teams.gnome.members; + platforms = platforms.unix; + mainProgram = "tecla"; + }; +}) diff --git a/pkgs/applications/misc/gnome-usage/default.nix b/pkgs/applications/misc/gnome-usage/default.nix index a1b92572679c8..179facc64fd50 100644 --- a/pkgs/applications/misc/gnome-usage/default.nix +++ b/pkgs/applications/misc/gnome-usage/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ stdenv +, lib , fetchurl , meson , ninja @@ -7,23 +8,23 @@ , gettext , libxml2 , desktop-file-utils -, wrapGAppsHook +, wrapGAppsHook4 , glib -, gtk3 +, gtk4 +, libadwaita +, libgee , libgtop -, libdazzle , gnome , tracker -, libhandy }: stdenv.mkDerivation rec { pname = "gnome-usage"; - version = "3.38.1"; + version = "45.0"; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "mMdm4X4VZXEfx0uaJP0u0NX618y0VRlhLdTiFHaO05M="; + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; + sha256 = "5nfE/iwBSXqE/x4RV+kTHp+ZmfGnjTUjSvHXfYJ18pQ="; }; nativeBuildInputs = [ @@ -34,17 +35,16 @@ stdenv.mkDerivation rec { ninja pkg-config vala - wrapGAppsHook + wrapGAppsHook4 ]; buildInputs = [ glib - gnome.adwaita-icon-theme - gtk3 - libdazzle + gtk4 + libadwaita + libgee libgtop tracker - libhandy ]; postPatch = '' @@ -60,7 +60,8 @@ stdenv.mkDerivation rec { meta = with lib; { description = "A nice way to view information about use of system resources, like memory and disk space"; - license = licenses.gpl3; + homepage = "https://gitlab.gnome.org/GNOME/gnome-usage"; + license = licenses.gpl3Plus; platforms = platforms.linux; maintainers = teams.gnome.members; }; diff --git a/pkgs/applications/misc/orca/default.nix b/pkgs/applications/misc/orca/default.nix index e825d803947a0..cbdc8e64aa9d2 100644 --- a/pkgs/applications/misc/orca/default.nix +++ b/pkgs/applications/misc/orca/default.nix @@ -34,13 +34,13 @@ buildPythonApplication rec { pname = "orca"; - version = "44.1"; + version = "45.1"; format = "other"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "9e1lUdcviXshJI1DMIWnuBesy7ApaoTD6FHZH7Lu5N4="; + sha256 = "v8wGv0vEe70CwVaNHkZL8Wox5iv3A7SaoTsI2zihqMo="; }; patches = [ diff --git a/pkgs/applications/misc/orca/fix-paths.patch b/pkgs/applications/misc/orca/fix-paths.patch index 037b323c8cb1a..45ae4b827ba59 100644 --- a/pkgs/applications/misc/orca/fix-paths.patch +++ b/pkgs/applications/misc/orca/fix-paths.patch @@ -1,8 +1,8 @@ diff --git a/src/orca/debug.py b/src/orca/debug.py -index e79482ed4..cbf3a24ec 100644 +index b7e11ea60..9ab996765 100644 --- a/src/orca/debug.py +++ b/src/orca/debug.py -@@ -502,7 +502,7 @@ def traceit(frame, event, arg): +@@ -447,7 +447,7 @@ def traceit(frame, event, arg): return traceit def getOpenFDCount(pid): @@ -11,29 +11,20 @@ index e79482ed4..cbf3a24ec 100644 procs = procs.decode('UTF-8').split('\n') files = list(filter(lambda s: s and s[0] == 'f' and s[1:].isdigit(), procs)) -@@ -510,7 +510,7 @@ def getOpenFDCount(pid): - - def getCmdline(pid): - try: -- openFile = os.popen('cat /proc/%s/cmdline' % pid) -+ openFile = os.popen('@cat@ /proc/%s/cmdline' % pid) - cmdline = openFile.read() - openFile.close() - except: -@@ -520,7 +520,7 @@ def getCmdline(pid): +@@ -465,7 +465,7 @@ def getCmdline(pid): return cmdline def pidOf(procName): -- openFile = subprocess.Popen('pgrep %s' % procName, -+ openFile = subprocess.Popen('@pgrep@ %s' % procName, +- openFile = subprocess.Popen(f'pgrep {procName}', ++ openFile = subprocess.Popen(f'@pgrep@ {procName}', shell=True, stdout=subprocess.PIPE).stdout pids = openFile.read() diff --git a/src/orca/orca.py b/src/orca/orca.py -index 2fe0a0bf2..087526556 100644 +index d4e89f918..bb3e6cc1d 100644 --- a/src/orca/orca.py +++ b/src/orca/orca.py -@@ -285,7 +285,7 @@ def updateKeyMap(keyboardEvent): +@@ -312,7 +312,7 @@ def updateKeyMap(keyboardEvent): def _setXmodmap(xkbmap): """Set the keyboard map using xkbcomp.""" @@ -42,7 +33,7 @@ index 2fe0a0bf2..087526556 100644 stdin=subprocess.PIPE, stdout=None, stderr=None) p.communicate(xkbmap) -@@ -363,7 +363,7 @@ def _storeXmodmap(keyList): +@@ -389,7 +389,7 @@ def _storeXmodmap(keyList): """ global _originalXmodmap @@ -51,7 +42,7 @@ index 2fe0a0bf2..087526556 100644 def _restoreXmodmap(keyList=[]): """Restore the original xmodmap values for the keys in keyList. -@@ -375,7 +375,7 @@ def _restoreXmodmap(keyList=[]): +@@ -404,7 +404,7 @@ def _restoreXmodmap(keyList=[]): global _capsLockCleared _capsLockCleared = False @@ -61,19 +52,19 @@ index 2fe0a0bf2..087526556 100644 p.communicate(_originalXmodmap) diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in -index 8c9d40153..eec0d5437 100644 +index 9d64af948..ca9c9e083 100644 --- a/src/orca/orca_bin.py.in +++ b/src/orca/orca_bin.py.in -@@ -62,7 +62,7 @@ class ListApps(argparse.Action): +@@ -65,7 +65,7 @@ class ListApps(argparse.Action): name = "[DEAD]" try: - cmdline = subprocess.getoutput('cat /proc/%s/cmdline' % pid) + cmdline = subprocess.getoutput('@cat@ /proc/%s/cmdline' % pid) - except: + except Exception: cmdline = '(exception encountered)' else: -@@ -197,7 +197,7 @@ def inGraphicalDesktop(): +@@ -198,7 +198,7 @@ def inGraphicalDesktop(): def otherOrcas(): """Returns the pid of any other instances of Orca owned by this user.""" @@ -82,3 +73,16 @@ index 8c9d40153..eec0d5437 100644 shell=True, stdout=subprocess.PIPE).stdout pids = openFile.read() +diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py +index ed8b155e4..0436cca42 100644 +--- a/src/orca/script_utilities.py ++++ b/src/orca/script_utilities.py +@@ -144,7 +144,7 @@ class Utilities: + return "" + + try: +- cmdline = subprocess.getoutput(f"cat /proc/{pid}/cmdline") ++ cmdline = subprocess.getoutput(f"@cat@ /proc/{pid}/cmdline") + except Exception: + return "" + |