about summary refs log tree commit diff
path: root/nixpkgs/pkgs/kde/misc/phonon/default.nix
blob: ed0aad0527468e3e5ef72baa4f0c302c15b3c8b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  mkKdeDerivation,
  fetchurl,
  libGLU,
  libGL,
  pkg-config,
  libpulseaudio,
  qt5compat,
  qttools,
}:
mkKdeDerivation rec {
  pname = "phonon";
  version = "4.12.0";

  src = fetchurl {
    url = "mirror://kde/stable/phonon/${version}/phonon-${version}.tar.xz";
    hash = "sha256-Mof/4PvMLUqhNj+eFXRzAtCwgAkP525fIR2AnstD85o=";
  };

  extraBuildInputs = [
    libGLU
    libGL
    libpulseaudio
    qt5compat
  ];

  extraNativeBuildInputs = [
    pkg-config
    qttools
  ];

  cmakeFlags = ["-DPHONON_BUILD_QT5=0" "-DPHONON_BUILD_QT6=1"];

  meta.license = with lib.licenses; [lgpl21Plus gpl2Plus];
  meta.mainProgram = "phononsettings";
}