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

44 lines
884 B
Nix
Raw Normal View History

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