From 767b0a628df05b250e411597a94f435924520b26 Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa Date: Tue, 22 Jun 2021 07:49:55 -0300 Subject: [PATCH] tmux: fix cross compiling --- pkgs/tools/misc/tmux/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index c76912e3c90..90273068f3e 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,14 @@ stdenv.mkDerivation rec { sha256 = "0143ylfk7zsl3xmiasb768238gr582cfhsgv3p0h0f13bp8d6q09"; }; + patches = [ + # See https://github.com/tmux/tmux/pull/2755 + (fetchpatch { + url = "https://github.com/tmux/tmux/commit/d0a2683120ec5a33163a14b0e1b39d208745968f.patch"; + sha256 = "070knpncxfxi6k4q64jwi14ns5vm3606cf402h1c11cwnaa84n1g"; + }) + ]; + nativeBuildInputs = [ pkg-config autoreconfHook