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