nixpkgs/pkgs/development/libraries/phonon/backends/vlc.nix

42 lines
863 B
Nix
Raw Normal View History

2020-09-25 11:35:52 +01:00
{ stdenv, lib, fetchurl, cmake, phonon, pkgconfig, libvlc
, extra-cmake-modules, qttools, qtbase, qtx11extras
, debug ? false
}:
2016-04-22 14:11:10 +01:00
with lib;
stdenv.mkDerivation rec {
2016-04-22 14:11:10 +01:00
pname = "phonon-backend-vlc";
version = "0.11.1";
2016-04-22 14:11:10 +01:00
meta = with stdenv.lib; {
homepage = "https://phonon.kde.org/";
2016-04-22 14:11:10 +01:00
description = "GStreamer backend for Phonon";
platforms = platforms.linux;
2018-10-25 21:19:19 +01:00
license = with licenses; [ bsd3 lgpl2Plus ];
2016-04-22 14:11:10 +01:00
};
src = fetchurl {
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
sha256 = "1vp52i5996khpxs233an7mlrzdji50gcs58ig8nrwfwlgyb1xnfc";
2016-04-22 14:11:10 +01:00
};
buildInputs = [
phonon
2020-09-25 11:35:52 +01:00
libvlc
qtbase
qtx11extras
];
nativeBuildInputs = [
cmake
pkgconfig
qttools
extra-cmake-modules
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
];
2016-04-22 14:11:10 +01:00
}