1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/libraries/phonon/qt5/default.nix

39 lines
903 B
Nix
Raw Normal View History

2015-09-27 15:54:15 +01:00
{ stdenv, fetchurl, cmake, mesa, pkgconfig, libpulseaudio
, qtbase, qtquick1, qttools
, debug ? false }:
with stdenv.lib;
let
2015-02-21 16:57:50 +00:00
v = "4.8.3";
in
stdenv.mkDerivation rec {
name = "phonon-${v}";
src = fetchurl {
2015-02-21 16:57:50 +00:00
url = "mirror://kde/stable/phonon/${v}/src/phonon-${v}.tar.xz";
sha256 = "05nshngk03ln90vsjz44dx8al576f4vd5fvhs1l0jmx13jb9q551";
};
2015-09-27 15:54:15 +01:00
buildInputs = [ mesa qtbase qtquick1 qttools libpulseaudio ];
2015-02-21 16:57:50 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
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
];
meta = {
homepage = http://phonon.kde.org/;
description = "Multimedia API for Qt";
license = stdenv.lib.licenses.lgpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
};
}