diff --git a/flake.nix b/flake.nix index d4bac64..3f92731 100644 --- a/flake.nix +++ b/flake.nix @@ -105,23 +105,16 @@ #"-DCMAKE_C_FLAGS:STRING=-Og" #"-DCMAKE_CXX_FLAGS:STRING=-Og" - # TODO: use package instead "-DFETCHCONTENT_SOURCE_DIR_JSON=${nlohmann-json}" # we care about the version - "-DFETCHCONTENT_SOURCE_DIR_SDL3=${sdl3}" - #"-DFETCHCONTENT_SOURCE_DIR_LIBWEBP=${pkgs.libwebp.src}" "-DTOMATO_DEP_LIBWEBP_USE_SYSTEM=ON" + # TODO: use package instead + "-DFETCHCONTENT_SOURCE_DIR_SDL3=${sdl3}" "-DFETCHCONTENT_SOURCE_DIR_SDL3_IMAGE=${sdl3_image}" "-DSDLIMAGE_JXL=ON" "-DFETCHCONTENT_SOURCE_DIR_PLUTOSVG=${plutosvg}" # not in pkgs "-DFETCHCONTENT_SOURCE_DIR_IMPLOT=${implot}" # could use pkgs.implot.src for outdated version ]; - # TODO: replace with install command - installPhase = '' - mkdir -p $out/bin - mv bin/tomato $out/bin - ''; - dontStrip = true; # does nothing # copied from nixpkgs's SDL2 default.nix diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 707915d..06677a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -221,3 +221,5 @@ target_link_libraries(test_frame_stream2_pop_reframer solanaceae_util ) +install(TARGETS tomato) +