mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #233409 from NickCao/ftxui
ftxui: set strictDeps, fix cross compilation
This commit is contained in:
commit
4cd4aecf2d
1 changed files with 6 additions and 4 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue