biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / mpd-touch-screen-gui / default.nix
blobce00cb2bd03e714e73bcee56cf03d778cad3e91e
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , autoreconfHook
6 , SDL2
7 , SDL2_ttf
8 , SDL2_image
9 , boost
10 , libmpdclient
11 , libwtk-sdl2
12 , icu
13 , libconfig
14 , dejavu_fonts
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "mpd-touch-screen-gui";
19   version = "unstable-2022-12-30";
21   src = fetchFromGitHub {
22     owner = "muesli4";
23     repo = "mpd-touch-screen-gui";
24     rev = "156eaebede89da2b83a98d8f9dfa46af12282fb4";
25     sha256 = "sha256-vr/St4BghrndjUQ0nZI/uJq+F/MjEj6ulc4DYwQ/pgU=";
26   };
28   nativeBuildInputs = [
29     pkg-config
30     autoreconfHook
31   ];
33   postPatch = ''
34     sed -i s#/usr/share/fonts/TTF#${dejavu_fonts}/share/fonts/truetype#g data/program.conf
35   '';
37   buildInputs = [
38     SDL2
39     SDL2_ttf
40     SDL2_image
41     boost
42     libmpdclient
43     libwtk-sdl2
44     icu
45     libconfig
46   ];
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   ];
53   doCheck = true;
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   };