diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-08-22 11:03:55 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-04-08 18:48:56 +0300 |
commit | 6d79af426396a857266bf72a8694963c9c9164d1 (patch) | |
tree | 44089b1fa0d411a392295b6301c19e990be4ea48 /pkgs/development | |
parent | a5aeb5016dec640058180411033f3c6409153646 (diff) |
libwtk-sdl2: init at unstable-2023-02-28
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/libwtk-sdl2/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libwtk-sdl2/default.nix b/pkgs/development/libraries/libwtk-sdl2/default.nix new file mode 100644 index 0000000000000..00c8ae675e7bc --- /dev/null +++ b/pkgs/development/libraries/libwtk-sdl2/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, boost +, SDL2 +, SDL2_ttf +, SDL2_image +}: + +stdenv.mkDerivation rec { + pname = "libwtk-sdl2"; + version = "unstable-2023-02-28"; + + src = fetchFromGitHub { + owner = "muesli4"; + repo = pname; + rev = "0504f8342c8c97d0c8b43d33751427c564ad8d44"; + sha256 = "sha256-NAjsDQ4/hklYRfa85uleOr50tmc6UJVo2xiDnEbmIxk="; + }; + + nativeBuildInputs = [ + pkg-config + autoreconfHook + ]; + buildInputs = [ + boost + SDL2 + SDL2_ttf + SDL2_image + ]; + # From some reason, this is needed as otherwise SDL.h is not found + NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2"; + + outputs = [ "out" "dev" "lib" ]; + + meta = with lib; { + description = "Simplistic SDL2 GUI framework in early developement"; + homepage = "https://github.com/muesli4/libwtk-sdl2"; + # See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ doronbehar ]; + /* Partial darwin build failure log (from ofborg): + geometry.cpp:95:34: error: no member named 'abs' in namespace 'std' + > return { std::abs(v.w), std::abs(v.h) }; + > ~~~~~^ + */ + platforms = platforms.linux; + }; +} |