lol
1{ stdenv, lib, fetchurl, cmake, phonon, pkg-config, libvlc
2, extra-cmake-modules, qttools, qtbase, qtx11extras
3, debug ? false
4}:
5
6stdenv.mkDerivation rec {
7 pname = "phonon-backend-vlc";
8 version = "0.11.2";
9
10 src = fetchurl {
11 url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
12 sha256 = "sha256-xsM7/GjRN/DlegKeS3mMu5D1Svb3Ma9JZ3hXeRzNU6U=";
13 };
14
15 buildInputs = [
16 phonon
17 libvlc
18 qtbase
19 qtx11extras
20 ];
21
22 nativeBuildInputs = [
23 cmake
24 pkg-config
25 qttools
26 extra-cmake-modules
27 ];
28
29 dontWrapQtApps = true;
30
31 cmakeFlags = [
32 "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
33 ];
34
35 meta = with lib; {
36 homepage = "https://phonon.kde.org/";
37 description = "GStreamer backend for Phonon";
38 platforms = platforms.linux;
39 license = with licenses; [ bsd3 lgpl2Plus ];
40 };
41}