Merge pull request #232288 from hzeller/20230516-update-ftxui
ftxui: 3.0.0 -> 4.1.0
This commit is contained in:
commit
d94ca6fb49
1 changed files with 15 additions and 17 deletions
|
@ -1,44 +1,42 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, cmake
|
, cmake
|
||||||
, doxygen
|
, doxygen
|
||||||
|
, gbenchmark
|
||||||
, graphviz
|
, graphviz
|
||||||
|
, gtest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ftxui";
|
pname = "ftxui";
|
||||||
version = "3.0.0";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ArthurSonzogni";
|
owner = "ArthurSonzogni";
|
||||||
repo = "ftxui";
|
repo = "ftxui";
|
||||||
rev = "v${version}";
|
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 = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
doxygen
|
doxygen
|
||||||
graphviz
|
graphviz
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
nativeCheckInputs = [
|
||||||
"-DFTXUI_BUILD_EXAMPLES=OFF"
|
gbenchmark
|
||||||
|
gtest
|
||||||
];
|
];
|
||||||
|
|
||||||
# gtest and gbenchmark don't seem to generate any binaries
|
cmakeFlags = [
|
||||||
doCheck = false;
|
"-DFTXUI_BUILD_EXAMPLES=OFF"
|
||||||
|
"-DFTXUI_BUILD_DOCS=ON"
|
||||||
|
"-DFTXUI_BUILD_TESTS=ON"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ArthurSonzogni/FTXUI";
|
homepage = "https://github.com/ArthurSonzogni/FTXUI";
|
||||||
|
@ -46,6 +44,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "Functional Terminal User Interface library for C++";
|
description = "Functional Terminal User Interface library for C++";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.ivar ];
|
maintainers = [ maintainers.ivar ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue