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
1.2 KiB
Nix
Raw Normal View History

2021-08-19 17:16:50 +02:00
{ lib
, stdenv
, fetchFromGitHub
2022-07-10 19:18:40 +02:00
, fetchpatch
2021-08-19 17:16:50 +02:00
, cmake
, doxygen
, graphviz
}:
stdenv.mkDerivation rec {
pname = "ftxui";
2022-07-10 19:18:40 +02:00
version = "3.0.0";
2021-08-19 17:16:50 +02:00
src = fetchFromGitHub {
owner = "ArthurSonzogni";
2022-07-10 19:18:40 +02:00
repo = "ftxui";
2022-03-08 21:20:54 +01:00
rev = "v${version}";
2022-07-10 19:18:40 +02:00
sha256 = "sha256-2pCk4drYIprUKcjnrlX6WzPted7MUAp973EmAQX3RIE=";
2021-08-19 17:16:50 +02:00
};
2022-07-10 19:18:40 +02:00
patches = [
# Can be removed once https://github.com/ArthurSonzogni/FTXUI/pull/403 hits a stable release
(fetchpatch {
name = "fix-postevent-segfault.patch";
url = "https://github.com/ArthurSonzogni/FTXUI/commit/f9256fa132e9d3c50ef1e1eafe2774160b38e063.patch";
sha256 = "sha256-0040/gJcCXzL92FQLhZ2dNMJhNqXXD+UHFv4Koc07K0=";
})
];
2021-08-19 17:16:50 +02:00
nativeBuildInputs = [
cmake
doxygen
graphviz
];
2022-07-10 19:18:40 +02:00
cmakeFlags = [
"-DFTXUI_BUILD_EXAMPLES=OFF"
];
2022-03-08 21:20:54 +01:00
# gtest and gbenchmark don't seem to generate any binaries
doCheck = false;
2021-08-19 17:16:50 +02:00
meta = with lib; {
homepage = "https://github.com/ArthurSonzogni/FTXUI";
2022-03-08 21:20:54 +01:00
changelog = "https://github.com/ArthurSonzogni/FTXUI/blob/v${version}/CHANGELOG.md";
description = "Functional Terminal User Interface library for C++";
2021-08-19 17:16:50 +02:00
license = licenses.mit;
maintainers = [ maintainers.ivar ];
platforms = platforms.unix;
};
}