ftxui: 2.0.0 -> 3.0.0

This commit is contained in:
Ivar Scholten 2022-07-10 19:18:40 +02:00
parent 135b6bf9ff
commit 1eddccf258

View File

@ -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;