Merge pull request #232288 from hzeller/20230516-update-ftxui

ftxui: 3.0.0 -> 4.1.0
This commit is contained in:
Mario Rodas 2023-05-21 19:47:55 -05:00 committed by GitHub
commit d94ca6fb49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,44 +1,42 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, doxygen
, gbenchmark
, graphviz
, gtest
}:
stdenv.mkDerivation rec {
pname = "ftxui";
version = "3.0.0";
version = "4.1.0";
src = fetchFromGitHub {
owner = "ArthurSonzogni";
repo = "ftxui";
rev = "v${version}";
sha256 = "sha256-2pCk4drYIprUKcjnrlX6WzPted7MUAp973EmAQX3RIE=";
sha256 = "sha256-6uPlJXuWcTUnpk+xe6EWDYvDLsfy7hGkEMO/2j3Dz0o=";
};
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"
nativeCheckInputs = [
gbenchmark
gtest
];
# gtest and gbenchmark don't seem to generate any binaries
doCheck = false;
cmakeFlags = [
"-DFTXUI_BUILD_EXAMPLES=OFF"
"-DFTXUI_BUILD_DOCS=ON"
"-DFTXUI_BUILD_TESTS=ON"
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/ArthurSonzogni/FTXUI";
@ -46,6 +44,6 @@ stdenv.mkDerivation rec {
description = "Functional Terminal User Interface library for C++";
license = licenses.mit;
maintainers = [ maintainers.ivar ];
platforms = platforms.unix;
platforms = platforms.all;
};
}