nixpkgs/pkgs/development/libraries/ftxui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
927 B
Nix
Raw Normal View History

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