From 1eddccf258e54a5b71a954df5e394639d07f5196 Mon Sep 17 00:00:00 2001 From: Ivar Scholten Date: Sun, 10 Jul 2022 19:18:40 +0200 Subject: [PATCH] ftxui: 2.0.0 -> 3.0.0 --- pkgs/development/libraries/ftxui/default.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/ftxui/default.nix b/pkgs/development/libraries/ftxui/default.nix index 27a21ceca665..68679d262bed 100644 --- a/pkgs/development/libraries/ftxui/default.nix +++ b/pkgs/development/libraries/ftxui/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , doxygen , graphviz @@ -8,21 +9,34 @@ stdenv.mkDerivation rec { pname = "ftxui"; - version = "2.0.0"; + version = "3.0.0"; src = fetchFromGitHub { owner = "ArthurSonzogni"; - repo = pname; + repo = "ftxui"; rev = "v${version}"; - sha256 = "sha256-BfNUk2DbBpKMBEu1tQWl85tgjB/4NAh86VVSS9zAjKo="; + sha256 = "sha256-2pCk4drYIprUKcjnrlX6WzPted7MUAp973EmAQX3RIE="; }; + patches = [ + # Can be removed once https://github.com/ArthurSonzogni/FTXUI/pull/403 hits a stable release + (fetchpatch { + name = "fix-postevent-segfault.patch"; + url = "https://github.com/ArthurSonzogni/FTXUI/commit/f9256fa132e9d3c50ef1e1eafe2774160b38e063.patch"; + sha256 = "sha256-0040/gJcCXzL92FQLhZ2dNMJhNqXXD+UHFv4Koc07K0="; + }) + ]; + nativeBuildInputs = [ cmake doxygen graphviz ]; + cmakeFlags = [ + "-DFTXUI_BUILD_EXAMPLES=OFF" + ]; + # gtest and gbenchmark don't seem to generate any binaries doCheck = false;