Merge pull request #233409 from NickCao/ftxui

ftxui: set strictDeps, fix cross compilation
This commit is contained in:
Nikolay Korotkiy 2023-06-13 01:47:17 +04:00 committed by GitHub
commit 4cd4aecf2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,24 +19,26 @@ stdenv.mkDerivation rec {
sha256 = "sha256-qFgCLV7sgGxlL18sThqpl+vyXL68GXcbYqMG7mXhsB4="; sha256 = "sha256-qFgCLV7sgGxlL18sThqpl+vyXL68GXcbYqMG7mXhsB4=";
}; };
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
doxygen doxygen
graphviz graphviz
]; ];
nativeCheckInputs = [ checkInputs = [
gbenchmark
gtest gtest
gbenchmark
]; ];
cmakeFlags = [ cmakeFlags = [
"-DFTXUI_BUILD_EXAMPLES=OFF" "-DFTXUI_BUILD_EXAMPLES=OFF"
"-DFTXUI_BUILD_DOCS=ON" "-DFTXUI_BUILD_DOCS=ON"
"-DFTXUI_BUILD_TESTS=ON" "-DFTXUI_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
]; ];
doCheck = true; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/ArthurSonzogni/FTXUI"; homepage = "https://github.com/ArthurSonzogni/FTXUI";