depot/third_party/nixpkgs/pkgs/development/libraries/ftxui/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

49 lines
927 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, doxygen
, gbenchmark
, graphviz
, gtest
}:
stdenv.mkDerivation rec {
pname = "ftxui";
version = "4.1.0";
src = fetchFromGitHub {
owner = "ArthurSonzogni";
repo = "ftxui";
rev = "v${version}";
sha256 = "sha256-6uPlJXuWcTUnpk+xe6EWDYvDLsfy7hGkEMO/2j3Dz0o=";
};
nativeBuildInputs = [
cmake
doxygen
graphviz
];
nativeCheckInputs = [
gbenchmark
gtest
];
cmakeFlags = [
"-DFTXUI_BUILD_EXAMPLES=OFF"
"-DFTXUI_BUILD_DOCS=ON"
"-DFTXUI_BUILD_TESTS=ON"
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/ArthurSonzogni/FTXUI";
changelog = "https://github.com/ArthurSonzogni/FTXUI/blob/v${version}/CHANGELOG.md";
description = "Functional Terminal User Interface library for C++";
license = licenses.mit;
maintainers = [ maintainers.ivar ];
platforms = platforms.all;
};
}