11 , multimediaSupport ? true, ffmpeg
12 , qrcodegenSupport ? true, qrcodegen
15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
20 owner = "dankamongmen";
23 sha256 = "sha256-3ddiHzPZ74GN2Hu+6Oe1DaNFn6S9gegGwXSX8fbtPp8=";
26 outputs = [ "out" "dev" ];
40 ++ lib.optional qrcodegenSupport qrcodegen
41 ++ lib.optional multimediaSupport ffmpeg;
44 lib.optional (qrcodegenSupport) "-DUSE_QRCODEGEN=ON"
45 ++ lib.optional (!multimediaSupport) "-DUSE_MULTIMEDIA=none";
47 # https://github.com/dankamongmen/notcurses/issues/2661
49 substituteInPlace tools/notcurses-core.pc.in \
50 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
51 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
52 substituteInPlace tools/notcurses-ffi.pc.in \
53 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
54 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
55 substituteInPlace tools/notcurses++.pc.in \
56 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
57 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
58 substituteInPlace tools/notcurses.pc.in \
59 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
60 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
64 homepage = "https://github.com/dankamongmen/notcurses";
65 description = "Blingful TUIs and character graphics";
67 Notcurses is a library facilitating complex TUIs on modern terminal
68 emulators, supporting vivid colors, multimedia, and Unicode to the maximum
69 degree possible. Things can be done with Notcurses that simply can't be
72 It is not a source-compatible X/Open Curses implementation, nor a
73 replacement for NCURSES on existing systems.
75 license = licenses.asl20;
76 maintainers = with maintainers; [ AndersonTorres ];
77 inherit (ncurses.meta) platforms;