push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Index: phonon-gstreamer-4.9.0/gstreamer/backend.cpp
===================================================================
--- phonon-gstreamer-4.9.0.orig/gstreamer/backend.cpp
+++ phonon-gstreamer-4.9.0/gstreamer/backend.cpp
@@ -85,6 +85,8 @@ Backend::Backend(QObject *parent, const
"--gst-debug-no-color"
};
+ qputenv("GST_PLUGIN_PATH_1_0", GST_PLUGIN_PATH_1_0);
+
int argc = sizeof(args) / sizeof(*args);
char **argv = const_cast<char**>(args);
GError *err = 0;

View File

@@ -0,0 +1,85 @@
{
stdenv,
lib,
fetchurl,
fetchpatch,
cmake,
gst_all_1,
phonon,
pkg-config,
extra-cmake-modules,
qttools,
qtbase,
qtx11extras,
debug ? false,
}:
stdenv.mkDerivation rec {
pname = "phonon-backend-gstreamer";
version = "4.10.0";
src = fetchurl {
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
};
patches = [
# Hardcode paths to useful plugins so the backend doesn't depend
# on system paths being set.
./gst-plugin-paths.patch
# Work around https://bugs.kde.org/show_bug.cgi?id=445196 until a new release.
(fetchpatch {
url = "https://invent.kde.org/libraries/phonon-gstreamer/-/commit/bbbb160f30a394655cff9398d17961142388b0f2.patch";
sha256 = "sha256-tNBqVt67LNb9SQogS9ol8/xYIZvVSoVUgXQahMfkFh8=";
})
];
dontWrapQtApps = true;
env.NIX_CFLAGS_COMPILE =
let
gstPluginPaths = lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" (
with gst_all_1;
[
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gst-plugins-bad
gst-libav
]
);
in
toString [
# This flag should be picked up through pkg-config, but it isn't.
"-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
];
buildInputs = with gst_all_1; [
gstreamer
gst-plugins-base
phonon
qtbase
qtx11extras
];
nativeBuildInputs = [
cmake
pkg-config
extra-cmake-modules
qttools
];
cmakeBuildType = if debug then "Debug" else "Release";
meta = with lib; {
homepage = "https://phonon.kde.org/";
description = "GStreamer backend for Phonon";
platforms = platforms.linux;
maintainers = with maintainers; [ ttuegel ];
license = licenses.lgpl21;
};
}

View File

@@ -0,0 +1,53 @@
{
stdenv,
lib,
fetchurl,
cmake,
phonon,
pkg-config,
libvlc,
extra-cmake-modules,
qttools,
qtbase,
qtx11extras,
debug ? false,
}:
stdenv.mkDerivation rec {
pname = "phonon-backend-vlc";
version = "0.11.3";
src = fetchurl {
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-Xmn97MsGDH5rWSTO8uZb7loIrOQScAW5U0TtMHfcY5c=";
};
buildInputs = [
phonon
libvlc
qtbase
qtx11extras
];
nativeBuildInputs = [
cmake
pkg-config
qttools
extra-cmake-modules
];
dontWrapQtApps = true;
cmakeBuildType = if debug then "Debug" else "Release";
meta = with lib; {
homepage = "https://community.kde.org/Phonon";
# Dev repo is at https://invent.kde.org/libraries/phonon-vlc
description = "GStreamer backend for Phonon";
platforms = platforms.linux;
license = with licenses; [
bsd3
lgpl21Plus
];
};
}

View File

@@ -0,0 +1,98 @@
{
stdenv,
lib,
fetchurl,
cmake,
libGLU,
libGL,
pkg-config,
libpulseaudio,
extra-cmake-modules,
qtbase,
qttools,
debug ? false,
}:
let
soname = "phonon4qt5";
buildsystemdir = "share/cmake/${soname}";
in
stdenv.mkDerivation rec {
pname = "phonon";
version = "4.11.1";
meta = {
homepage = "https://community.kde.org/Phonon";
description = "Multimedia API for Qt";
mainProgram = "phononsettings";
license = lib.licenses.lgpl2;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ttuegel ];
};
src = fetchurl {
url = "mirror://kde/stable/phonon/${version}/phonon-${version}.tar.xz";
sha256 = "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl";
};
buildInputs = [
libGLU
libGL
libpulseaudio
qtbase
qttools
];
nativeBuildInputs = [
cmake
pkg-config
extra-cmake-modules
];
outputs = [
"out"
"dev"
];
env.NIX_CFLAGS_COMPILE = toString (
[
"-fPIC"
]
++ lib.optionals stdenv.cc.isClang [
"-Wno-error=enum-constexpr-conversion"
]
);
cmakeBuildType = if debug then "Debug" else "Release";
dontWrapQtApps = true;
preConfigure = ''
appendToVar cmakeFlags "-DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs"
appendToVar cmakeFlags "-DPHONON_QT_IMPORTS_INSTALL_DIR=''${!outputBin}/$qtQmlPrefix"
appendToVar cmakeFlags "-DPHONON_QT_PLUGIN_INSTALL_DIR=''${!outputBin}/$qtPluginPrefix/designer"
'';
postPatch = ''
sed -i PhononConfig.cmake.in \
-e "/get_filename_component(rootDir/ s/^.*$//" \
-e "/^set(PHONON_INCLUDE_DIR/ s|\''${rootDir}/||" \
-e "/^set(PHONON_LIBRARY_DIR/ s|\''${rootDir}/||" \
-e "/^set(PHONON_BUILDSYSTEM_DIR/ s|\''${rootDir}|''${!outputDev}|"
sed -i cmake/FindPhononInternal.cmake \
-e "/set(INCLUDE_INSTALL_DIR/ c set(INCLUDE_INSTALL_DIR \"''${!outputDev}/include\")"
sed -i cmake/FindPhononInternal.cmake \
-e "/set(PLUGIN_INSTALL_DIR/ c set(PLUGIN_INSTALL_DIR \"$qtPluginPrefix/..\")"
sed -i CMakeLists.txt \
-e "/set(BUILDSYSTEM_INSTALL_DIR/ c set(BUILDSYSTEM_INSTALL_DIR \"''${!outputDev}/${buildsystemdir}\")"
'';
postFixup = ''
sed -i "''${!outputDev}/lib/pkgconfig/${soname}.pc" \
-e "/^exec_prefix=/ c exec_prefix=''${!outputBin}/bin"
'';
}