2015-05-27 20:42:15 +01:00
|
|
|
{ stdenv, fetchurl, cmake, mesa, pkgconfig, libpulseaudio, qt5, debug ? false }:
|
2014-11-18 01:25:36 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-11-07 21:14:00 +00:00
|
|
|
|
|
|
|
let
|
2015-02-21 16:57:50 +00:00
|
|
|
v = "4.8.3";
|
2011-11-07 21:14:00 +00:00
|
|
|
in
|
2011-07-17 15:10:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-11-07 21:14:00 +00:00
|
|
|
name = "phonon-${v}";
|
2011-07-17 15:10:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-21 16:57:50 +00:00
|
|
|
url = "mirror://kde/stable/phonon/${v}/src/phonon-${v}.tar.xz";
|
|
|
|
sha256 = "05nshngk03ln90vsjz44dx8al576f4vd5fvhs1l0jmx13jb9q551";
|
2011-07-17 15:10:41 +01:00
|
|
|
};
|
|
|
|
|
2015-05-27 20:42:15 +01:00
|
|
|
buildInputs = [ mesa qt5.base qt5.quick1 qt5.tools libpulseaudio ];
|
2011-11-07 21:14:00 +00:00
|
|
|
|
2015-02-21 16:57:50 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2011-07-17 15:10:41 +01:00
|
|
|
|
2015-06-25 05:57:59 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
|
2015-02-21 16:57:50 +00:00
|
|
|
cmakeFlags = [
|
2015-06-25 05:57:59 +01:00
|
|
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
2015-02-21 16:57:50 +00:00
|
|
|
"-DPHONON_BUILD_PHONON4QT5=ON"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
2015-06-25 05:57:59 +01:00
|
|
|
];
|
2014-11-18 01:25:36 +00:00
|
|
|
|
2011-07-17 15:10:41 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://phonon.kde.org/;
|
|
|
|
description = "Multimedia API for Qt";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2011-07-29 09:45:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-18 01:25:36 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
|
|
|
};
|
2011-07-17 15:10:41 +01:00
|
|
|
}
|