1{
2 stdenv,
3 lib,
4 fetchurl,
5 cmake,
6 phonon,
7 pkg-config,
8 libvlc,
9 extra-cmake-modules,
10 qttools,
11 qtbase,
12 qtx11extras,
13 debug ? false,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "phonon-backend-vlc";
18 version = "0.11.3";
19
20 src = fetchurl {
21 url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
22 sha256 = "sha256-Xmn97MsGDH5rWSTO8uZb7loIrOQScAW5U0TtMHfcY5c=";
23 };
24
25 buildInputs = [
26 phonon
27 libvlc
28 qtbase
29 qtx11extras
30 ];
31
32 nativeBuildInputs = [
33 cmake
34 pkg-config
35 qttools
36 extra-cmake-modules
37 ];
38
39 dontWrapQtApps = true;
40
41 cmakeBuildType = if debug then "Debug" else "Release";
42
43 meta = with lib; {
44 homepage = "https://community.kde.org/Phonon";
45 # Dev repo is at https://invent.kde.org/libraries/phonon-vlc
46 description = "GStreamer backend for Phonon";
47 platforms = platforms.linux;
48 license = with licenses; [
49 bsd3
50 lgpl21Plus
51 ];
52 };
53}