diff --git a/pkgs/by-name/ft/ftxui/package.nix b/pkgs/by-name/ft/ftxui/package.nix index 01d2daab0689..70bfe592bc97 100644 --- a/pkgs/by-name/ft/ftxui/package.nix +++ b/pkgs/by-name/ft/ftxui/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + cmake, doxygen, gbenchmark, @@ -9,14 +10,14 @@ gtest, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ftxui"; version = "6.1.9"; src = fetchFromGitHub { owner = "ArthurSonzogni"; repo = "ftxui"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-plJxTLhOhUyuay5uYv4KLK9UTmM2vsoda+iDXVa4b+k="; }; @@ -33,20 +34,20 @@ stdenv.mkDerivation rec { gbenchmark ]; + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + cmakeFlags = [ (lib.cmakeBool "FTXUI_BUILD_EXAMPLES" false) (lib.cmakeBool "FTXUI_BUILD_DOCS" true) - (lib.cmakeBool "FTXUI_BUILD_TESTS" doCheck) + (lib.cmakeBool "FTXUI_BUILD_TESTS" finalAttrs.doCheck) ]; - doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; - meta = { homepage = "https://github.com/ArthurSonzogni/FTXUI"; - changelog = "https://github.com/ArthurSonzogni/FTXUI/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/ArthurSonzogni/FTXUI/blob/v${finalAttrs.version}/CHANGELOG.md"; description = "Functional Terminal User Interface library for C++"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ phanirithvij ]; platforms = lib.platforms.all; }; -} +})