From 36ae9193c48a6034410b4eac6347bea8c57524d7 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 28 Nov 2011 15:58:45 +0000 Subject: [PATCH] Fix tmux cross-build svn path=/nixpkgs/trunk/; revision=30585 --- pkgs/tools/misc/tmux/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index 10793753ab59..da54c1854102 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -12,6 +12,12 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=\${out}"; + crossAttrs = { + preBuild = '' + makeFlags=" $makeFlags CC=${stdenv.cross.config}-gcc " + ''; + }; + buildInputs = [ ncurses libevent ]; meta = {