mini-calc: 3.3.3 -> 3.3.5 (#372274)
[NixPkgs.git] / pkgs / by-name / li / libwtk-sdl2 / package.nix
blob6415480e135fa14baac20e2a4bcd45162abce1f6
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   pkg-config,
7   boost,
8   SDL2,
9   SDL2_ttf,
10   SDL2_image,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "libwtk-sdl2";
15   version = "unstable-2023-02-28";
17   src = fetchFromGitHub {
18     owner = "muesli4";
19     repo = "libwtk-sdl2";
20     rev = "0504f8342c8c97d0c8b43d33751427c564ad8d44";
21     sha256 = "sha256-NAjsDQ4/hklYRfa85uleOr50tmc6UJVo2xiDnEbmIxk=";
22   };
24   nativeBuildInputs = [
25     pkg-config
26     autoreconfHook
27   ];
28   buildInputs = [
29     boost
30     SDL2
31     SDL2_ttf
32     SDL2_image
33   ];
34   # From some reason, this is needed as otherwise SDL.h is not found
35   NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2";
37   outputs = [
38     "out"
39     "dev"
40     "lib"
41   ];
43   meta = with lib; {
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 ];
50     /*
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) };
54          >                             ~~~~~^
55     */
56     platforms = platforms.linux;
57   };