mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
37 lines
885 B
Nix
37 lines
885 B
Nix
{ stdenv, fetchurl, cmake, mesa, pkgconfig, libpulseaudio, qt5, debug ? false }:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
v = "4.8.3";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "phonon-${v}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kde/stable/phonon/${v}/src/phonon-${v}.tar.xz";
|
|
sha256 = "05nshngk03ln90vsjz44dx8al576f4vd5fvhs1l0jmx13jb9q551";
|
|
};
|
|
|
|
buildInputs = [ mesa qt5.base qt5.quick1 qt5.tools libpulseaudio ];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
|
"-DPHONON_BUILD_PHONON4QT5=ON"
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|