Merge pull request #225162 from doronbehar/pkg/mpd-touch-screen-gui

libwtk-sdl2: init at unstable-2023-02-28

authored by Doron Behar and committed by GitHub 7f3f7ec3 aeb3a380

+118
+63
pkgs/applications/audio/mpd-touch-screen-gui/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , pkg-config 6 + , SDL2 7 + , SDL2_ttf 8 + , SDL2_image 9 + , boost 10 + , libmpdclient 11 + , libwtk-sdl2 12 + , icu 13 + , libconfig 14 + , dejavu_fonts 15 + }: 16 + 17 + stdenv.mkDerivation rec { 18 + pname = "mpd-touch-screen-gui"; 19 + version = "unstable-2022-12-30"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "muesli4"; 23 + repo = pname; 24 + rev = "156eaebede89da2b83a98d8f9dfa46af12282fb4"; 25 + sha256 = "sha256-vr/St4BghrndjUQ0nZI/uJq+F/MjEj6ulc4DYwQ/pgU="; 26 + }; 27 + 28 + nativeBuildInputs = [ 29 + pkg-config 30 + autoreconfHook 31 + ]; 32 + 33 + postPatch = '' 34 + sed -i s#/usr/share/fonts/TTF#${dejavu_fonts}/share/fonts/truetype#g data/program.conf 35 + ''; 36 + 37 + buildInputs = [ 38 + SDL2 39 + SDL2_ttf 40 + SDL2_image 41 + boost 42 + libmpdclient 43 + libwtk-sdl2 44 + icu 45 + libconfig 46 + ]; 47 + 48 + # https://stackoverflow.com/questions/53089494/configure-error-could-not-find-a-version-of-the-library 49 + configureFlags = [ 50 + "--with-boost-libdir=${boost.out}/lib" 51 + ]; 52 + 53 + doCheck = true; 54 + 55 + meta = with lib; { 56 + description = "A small MPD client that let's you view covers and has controls suitable for small touchscreens"; 57 + homepage = "https://github.com/muesli4/mpd-touch-screen-gui"; 58 + # See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES 59 + license = licenses.lgpl3Plus; 60 + maintainers = with maintainers; [ doronbehar ]; 61 + platforms = platforms.all; 62 + }; 63 + }
+51
pkgs/development/libraries/libwtk-sdl2/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , pkg-config 6 + , boost 7 + , SDL2 8 + , SDL2_ttf 9 + , SDL2_image 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "libwtk-sdl2"; 14 + version = "unstable-2023-02-28"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "muesli4"; 18 + repo = pname; 19 + rev = "0504f8342c8c97d0c8b43d33751427c564ad8d44"; 20 + sha256 = "sha256-NAjsDQ4/hklYRfa85uleOr50tmc6UJVo2xiDnEbmIxk="; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + pkg-config 25 + autoreconfHook 26 + ]; 27 + buildInputs = [ 28 + boost 29 + SDL2 30 + SDL2_ttf 31 + SDL2_image 32 + ]; 33 + # From some reason, this is needed as otherwise SDL.h is not found 34 + NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2"; 35 + 36 + outputs = [ "out" "dev" "lib" ]; 37 + 38 + meta = with lib; { 39 + description = "Simplistic SDL2 GUI framework in early developement"; 40 + homepage = "https://github.com/muesli4/libwtk-sdl2"; 41 + # See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES 42 + license = licenses.lgpl3Plus; 43 + maintainers = with maintainers; [ doronbehar ]; 44 + /* Partial darwin build failure log (from ofborg): 45 + geometry.cpp:95:34: error: no member named 'abs' in namespace 'std' 46 + > return { std::abs(v.w), std::abs(v.h) }; 47 + > ~~~~~^ 48 + */ 49 + platforms = platforms.linux; 50 + }; 51 + }
+4
pkgs/top-level/all-packages.nix
··· 5387 5387 5388 5388 mpris-scrobbler = callPackage ../tools/audio/mpris-scrobbler { }; 5389 5389 5390 + mpd-touch-screen-gui = callPackage ../applications/audio/mpd-touch-screen-gui { }; 5391 + 5390 5392 mq-cli = callPackage ../tools/system/mq-cli { }; 5391 5393 5392 5394 mrkd = with python3Packages; toPythonApplication mrkd; ··· 18368 18370 libtool_2 = callPackage ../development/tools/misc/libtool/libtool2.nix { }; 18369 18371 18370 18372 libwhich = callPackage ../development/tools/misc/libwhich { }; 18373 + 18374 + libwtk-sdl2 = callPackage ../development/libraries/libwtk-sdl2 { }; 18371 18375 18372 18376 linuxkit = callPackage ../development/tools/misc/linuxkit { 18373 18377 inherit (darwin.apple_sdk_11_0.frameworks) Virtualization;