about summary refs log tree commit diff
path: root/pkgs/tools/misc/tmux
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2021-04-23 14:15:06 -0400
committerBen Wolsieffer <benwolsieffer@gmail.com>2021-04-23 14:15:06 -0400
commit41d646f7581cb33318fa7703a3aaf0024d38773b (patch)
tree202b20cca1b067f4c516eb83756c904a82cd3713 /pkgs/tools/misc/tmux
parentdcdf30a78a523296b5f9d44fb67afac485b64737 (diff)
tmux: fix cross-compilation
Diffstat (limited to 'pkgs/tools/misc/tmux')
-rw-r--r--pkgs/tools/misc/tmux/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix
index 7fcd5322c2cbd..629cf548c26b6 100644
--- a/pkgs/tools/misc/tmux/default.nix
+++ b/pkgs/tools/misc/tmux/default.nix
@@ -1,5 +1,6 @@
 { lib, stdenv
 , fetchFromGitHub
+, fetchpatch
 , autoreconfHook
 , pkg-config
 , bison
@@ -31,6 +32,15 @@ stdenv.mkDerivation rec {
     sha256 = "0alq81h1rz1f0zsy8qb2dvsl47axpa86j4bplngwkph0ksqqgr3p";
   };
 
+  patches = [
+    # Fix cross-compilation
+    # https://github.com/tmux/tmux/pull/2651
+    (fetchpatch {
+      url = "https://github.com/tmux/tmux/commit/bb6242675ad0c7447daef148fffced882e5b4a61.patch";
+      sha256 = "1acr3xv3gqpq7qa2f8hw7c4f42hi444lfm1bz6wqj8f3yi320zjr";
+    })
+  ];
+
   nativeBuildInputs = [
     pkg-config
     autoreconfHook