2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, cmake, phonon, pkg-config, libvlc
|
2019-11-21 20:12:55 +00:00
|
|
|
, extra-cmake-modules, qttools, qtbase, qtx11extras
|
2016-07-29 16:29:41 +01:00
|
|
|
, debug ? false
|
|
|
|
}:
|
2016-04-22 14:11:10 +01:00
|
|
|
|
2019-11-21 20:12:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-04-22 14:11:10 +01:00
|
|
|
pname = "phonon-backend-vlc";
|
2022-02-24 10:57:16 +00:00
|
|
|
version = "0.11.3";
|
2016-04-22 14:11:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-21 20:12:55 +00:00
|
|
|
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
|
2022-02-24 10:57:16 +00:00
|
|
|
sha256 = "sha256-Xmn97MsGDH5rWSTO8uZb7loIrOQScAW5U0TtMHfcY5c=";
|
2016-04-22 14:11:10 +01:00
|
|
|
};
|
|
|
|
|
2019-11-21 20:12:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
phonon
|
2020-09-25 11:35:52 +01:00
|
|
|
libvlc
|
2019-11-21 20:12:55 +00:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-11-21 20:12:55 +00:00
|
|
|
qttools
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2019-11-21 20:12:55 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
|
|
|
];
|
2021-08-09 10:42:21 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-24 10:57:16 +00:00
|
|
|
homepage = "https://community.kde.org/Phonon";
|
|
|
|
# Dev repo is at https://invent.kde.org/libraries/phonon-vlc
|
2021-08-09 10:42:21 +01:00
|
|
|
description = "GStreamer backend for Phonon";
|
|
|
|
platforms = platforms.linux;
|
2022-02-24 10:57:16 +00:00
|
|
|
license = with licenses; [ bsd3 lgpl21Plus ];
|
2021-08-09 10:42:21 +01:00
|
|
|
};
|
2016-04-22 14:11:10 +01:00
|
|
|
}
|