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

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

52 lines
1022 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";
2023-05-29 18:06:44 +00:00
version = "4.1.1";
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}";
2023-05-29 18:06:44 +00:00
sha256 = "sha256-qFgCLV7sgGxlL18sThqpl+vyXL68GXcbYqMG7mXhsB4=";
2021-08-19 15:16:50 +00:00
};
strictDeps = true;
2021-08-19 15:16:50 +00:00
nativeBuildInputs = [
cmake
doxygen
graphviz
];
checkInputs = [
gtest
gbenchmark
];
2022-07-10 17:18:40 +00:00
cmakeFlags = [
"-DFTXUI_BUILD_EXAMPLES=OFF"
"-DFTXUI_BUILD_DOCS=ON"
"-DFTXUI_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
2022-07-10 17:18:40 +00:00
];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
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
};
}