Files
nixpkgs/pkgs/kde/misc/phonon/default.nix
Ben Siraphob ee62012a92 phonon: disable experimental library to fix build with newer clang
The experimental library is an unstable upstream API and should not be exposed by distribution builds. Disabling it also avoids the newer-Clang build failure on Darwin.

Assisted-by: Pi (OpenAI Codex GPT-5.6-sol)
2026-09-12 05:55:14 -07:00

46 lines
794 B
Nix

{
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"
# Do not expose upstream's unstable experimental API.
(lib.cmakeBool "PHONON_BUILD_EXPERIMENTAL" false)
];
meta.license = with lib.licenses; [
lgpl21Plus
gpl2Plus
];
meta.mainProgram = "phononsettings";
}