nixpkgs/pkgs/development/libraries/phonon-backend-gstreamer/qt5/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

2015-09-27 07:54:15 -07:00
{ stdenv, fetchurl, cmake, gst_all_1, phonon, pkgconfig, qtbase, debug ? false }:
2015-02-21 08:57:50 -08:00
with stdenv.lib;
2015-01-19 09:08:00 -08:00
let
version = "4.8.2";
pname = "phonon-backend-gstreamer";
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://kde/stable/phonon/${pname}/${version}/src/${name}.tar.xz";
sha256 = "1q1ix6zsfnh6gfnpmwp67s376m7g7ahpjl1qp2fqakzb5cgzgq10";
};
2015-09-27 07:54:15 -07:00
buildInputs = with gst_all_1; [ gstreamer gst-plugins-base phonon qtbase ];
2015-01-19 09:08:00 -08:00
NIX_CFLAGS_COMPILE = [
# This flag should be picked up through pkgconfig, but it isn't.
"-I${gst_all_1.gstreamer}/lib/gstreamer-1.0/include"
];
2015-01-19 09:08:00 -08:00
nativeBuildInputs = [ cmake pkgconfig ];
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DPHONON_BUILD_PHONON4QT5=ON"
2015-02-21 08:57:50 -08:00
]
++ optional debug "-DCMAKE_BUILD_TYPE=Debug";
2015-01-19 09:08:00 -08:00
meta = with stdenv.lib; {
homepage = http://phonon.kde.org/;
description = "GStreamer backend for Phonon";
platforms = platforms.linux;
maintainers = with maintainers; [ ttuegel ];
2015-01-19 09:08:00 -08:00
};
}