about summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/foot
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2023-07-28 16:04:43 +0200
committerOPNA2608 <christoph.neidahl@gmail.com>2023-07-28 16:04:43 +0200
commitf383ce3623b60cf8297a530d59981ae41b128411 (patch)
tree93d2e6d1d04ca8c1714afc301648e71eb33f1011 /pkgs/applications/terminal-emulators/foot
parent0fa6394cbbebf30c1acb76a00c87c1a5f59ea53c (diff)
foot: Pull patch to fix under Mir
Upstream issue: https://codeberg.org/dnkl/foot/issues/1444, fixes miriway VM tests.
Diffstat (limited to 'pkgs/applications/terminal-emulators/foot')
-rw-r--r--pkgs/applications/terminal-emulators/foot/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/foot/default.nix b/pkgs/applications/terminal-emulators/foot/default.nix
index ec2d0d9250dcb..5a50ba9448a65 100644
--- a/pkgs/applications/terminal-emulators/foot/default.nix
+++ b/pkgs/applications/terminal-emulators/foot/default.nix
@@ -2,6 +2,7 @@
 , lib
 , fetchFromGitea
 , fetchurl
+, fetchpatch
 , runCommand
 , fcft
 , freetype
@@ -101,6 +102,17 @@ stdenv.mkDerivation rec {
     hash = "sha256-YCwmPSn+XtF7HkMOFJft7j/2vr+8UE59yu/iGZ1dT8A=";
   };
 
+  patches = [
+    # Check viewporter protocol support before using it, fixes crash under Mir
+    # Remove when https://codeberg.org/dnkl/foot/pulls/1445 in version > 1.15.1
+    (fetchpatch {
+      name = "0001-foot-dont-try-to-use-a-non-existing-viewporter-interface.patch";
+      url = "https://codeberg.org/dnkl/foot/commit/9d75c551465fa3dbb3cd20ae87d6de294fcebce1.patch";
+      excludes = [ "CHANGELOG.md" ];
+      hash = "sha256-sVfGbudsmwh7phbbobBgSXoGe1lKJ8s1UdyBnVLmLYQ=";
+    })
+  ];
+
   depsBuildBuild = [
     pkg-config
   ];