13 stdenv.mkDerivation (finalAttrs: {
14 pname = "libwtk-sdl2";
15 version = "unstable-2023-02-28";
17 src = fetchFromGitHub {
20 rev = "0504f8342c8c97d0c8b43d33751427c564ad8d44";
21 sha256 = "sha256-NAjsDQ4/hklYRfa85uleOr50tmc6UJVo2xiDnEbmIxk=";
34 # From some reason, this is needed as otherwise SDL.h is not found
35 NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2";
44 description = "Simplistic SDL2 GUI framework in early developement";
45 mainProgram = "libwtk-sdl2-test";
46 homepage = "https://github.com/muesli4/libwtk-sdl2";
47 # See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES
48 license = licenses.lgpl3Plus;
49 maintainers = with maintainers; [ doronbehar ];
51 Partial darwin build failure log (from ofborg):
52 geometry.cpp:95:34: error: no member named 'abs' in namespace 'std'
53 > return { std::abs(v.w), std::abs(v.h) };
56 platforms = platforms.linux;