Skip to content

Commit

Permalink
kitty: 0.39.1->0.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leiserfg committed Mar 8, 2025
1 parent 62eb1af commit 221d91c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/applications/terminal-emulators/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,27 @@
nix-update-script,
makeBinaryWrapper,
autoSignDarwinBinariesHook,
cairo,
}:

with python3Packages;
buildPythonApplication rec {
pname = "kitty";
version = "0.39.1";
version = "0.40.0";
format = "other";

src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "kitty";
tag = "v${version}";
hash = "sha256-Cgbs9tdEGKhDShNh3M8N1UdRJu4aMylr9xLOGLpDAZE=";
hash = "sha256-c+u+lMuokDR8kWM0an3jFPC/qoK2RZTKqHZtfEnqtnM=";
};

goModules =
(buildGo123Module {
pname = "kitty-go-modules";
inherit src version;
vendorHash = "sha256-j5ToLPQeaf4xIaziBAROYZNvoaOx2TkTcuY95X4Neqc=";
vendorHash = "sha256-gBEzW2k1HDDmg1P1t6u90Lf1lLe1IKGpF2T9iCA31qs=";
}).goModules;

buildInputs =
Expand Down Expand Up @@ -109,6 +110,7 @@ buildPythonApplication rec {
wayland
dbus
libGL
cairo
];

nativeBuildInputs =
Expand Down Expand Up @@ -156,6 +158,9 @@ buildPythonApplication rec {
# Skip `test_ssh_bootstrap_with_different_launchers` when launcher is `zsh` since it causes:
# OSError: master_fd is in error condition
./disable-test_ssh_bootstrap_with_different_launchers.patch

# Temporary fix for setup.py until it's merged upstream
./fix_setup.patch
];

hardeningDisable = [
Expand Down Expand Up @@ -327,6 +332,7 @@ buildPythonApplication rec {
rvolosatovs
Luflosi
kashw2
leiserfg
];
};
}
13 changes: 13 additions & 0 deletions pkgs/applications/terminal-emulators/kitty/fix_setup.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 9e9c3f177..8183a3b69 100755
--- a/setup.py
+++ b/setup.py
@@ -1778,7 +1778,7 @@ def repl(name: str, raw: str, defval: Union[str, float, FrozenSet[str]], val: Un
return raw
tname = type(defval).__name__
if tname == 'frozenset':
- tname = 'typing.FrozenSet[str]'
+ tname = 'frozenset[str]'
prefix = f'{name}: {tname} ='
nraw = raw.replace(f'{prefix} {defval!r}', f'{prefix} {val!r}', 1)
if nraw == raw:

0 comments on commit 221d91c

Please sign in to comment.