add TestNotCurses

This commit is contained in:
2025-04-13 13:37:32 -05:00
parent 372e46168f
commit 640c19c439
9 changed files with 76 additions and 4 deletions

View File

@@ -27,6 +27,37 @@
};
TestNotCurses = pkgs.stdenvNoCC.mkDerivation {
name = "TestNotCurses";
src = ./.;
nativeBuildInputs = with pkgs; [
clang
];
buildInputs = with pkgs; [
notcurses
];
buildPhase = ''
clang++ \
modules/examples/TestNotCurses/src/*.cpp \
-fpic -shared \
-I src -I include \
-Wall \
-lnotcurses \
-DTESTNOTCURSES_DYNAMIC \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
Print = pkgs.stdenvNoCC.mkDerivation {
name = "Print";