kitty: 0.48.2->0.49.0

This commit is contained in:
leiserfg
2026-09-21 09:17:51 +02:00
parent ae81c3081e
commit ade74860eb
2 changed files with 15 additions and 11 deletions

View File

@@ -1,23 +1,23 @@
diff --git a/kitty/key_names.py b/kitty/key_names.py
index 1c4ce3487..00d767d45 100644
--- a/kitty/key_names.py
+++ b/kitty/key_names.py
@@ -59,17 +59,7 @@ if is_macos:
else:
diff --git i/kitty/key_names.py w/kitty/key_names.py
index d496339..2a1d9bc 100644
--- i/kitty/key_names.py
+++ w/kitty/key_names.py
@@ -67,17 +67,7 @@ def get_key_name_lookup() -> LookupFunc:
def load_libxkb_lookup() -> LookupFunc:
import ctypes
- for suffix in ('.0', ''):
- with suppress(Exception):
- lib = ctypes.CDLL(f'libxkbcommon.so{suffix}')
- break
- else:
- from ctypes.util import find_library
-
- lname = find_library('xkbcommon')
- if lname is None:
- raise RuntimeError('Failed to find libxkbcommon')
- lib = ctypes.CDLL(lname)
-
+ lib = ctypes.CDLL('@libxkbcommon@')
f = lib.xkb_keysym_from_name
f.argtypes = [ctypes.c_char_p, ctypes.c_int]
f.restype = ctypes.c_int

View File

@@ -46,26 +46,27 @@
makeBinaryWrapper,
darwin,
cairo,
shader-slang,
}:
with python3Packages;
buildPythonApplication rec {
pname = "kitty";
version = "0.48.2";
version = "0.49.0";
pyproject = false;
src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "kitty";
tag = "v${version}";
hash = "sha256-qNgVPpvMm8Y/nbBjVvWVuZ954ZXIuWmXhldP3w8MBhU=";
hash = "sha256-C1roiJ+mAm8rEoG5VAQABYUq2FSFVuusNQ0PtLP0tPI=";
};
goModules =
(buildGo126Module {
pname = "kitty-go-modules";
inherit src version;
vendorHash = "sha256-BZudfNfREwNrgalaimC5Lp+UIdFS+jHFLl9mEXcHYMI=";
vendorHash = "sha256-G+eaFOFMIIu2Qo5Mgr3ejwoYrYmNv3EIdEEraDPIdeY=";
}).goModules;
buildInputs = [
@@ -108,11 +109,13 @@ buildPythonApplication rec {
sphinx
furo
sphinx-copybutton
sphinx-design
sphinxext-opengraph
sphinx-inline-tabs
go_1_26
fontconfig
makeBinaryWrapper
shader-slang
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
imagemagick
@@ -294,6 +297,7 @@ buildPythonApplication rec {
lib.makeBinPath [
imagemagick
ncurses.dev
shader-slang
]
}"