nixpkgs/pkgs/development/libraries/phonon/default.nix
Peter Simons 9ac4ea27f9 upgraded phonon and its gstreamer backend to 4.6.0
svn path=/nixpkgs/trunk/; revision=32488
2012-02-22 20:29:36 +00:00

33 lines
743 B
Nix

{ stdenv, fetchurl, cmake, automoc4, qt4, xz }:
let
v = "4.6.0";
in
stdenv.mkDerivation rec {
name = "phonon-${v}";
src = fetchurl {
url = "mirror://kde/stable/phonon/${v}/src/${name}.tar.xz";
sha256 = "2915e7a37c92a0a8237b9e6d2ef67ba8b005ee3529d03991cd3d137f039ba3c4";
};
buildInputs = [ qt4 ];
buildNativeInputs = [ cmake automoc4 xz ];
cmakeFlags = "-DPHONON_MKSPECS_DIR=mkspecs";
preConfigure =
''
substituteInPlace designer/CMakeLists.txt \
--replace '{QT_PLUGINS_DIR}' '{CMAKE_INSTALL_PREFIX}/lib/qt4/plugins'
'';
meta = {
homepage = http://phonon.kde.org/;
description = "Multimedia API for Qt";
license = "LGPLv2";
platforms = stdenv.lib.platforms.linux;
};
}