-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
pipewire: 1.4.10 -> 1.6.0, pipewire and wireplumber: move to by-name, modernize #492490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb2ffd5
libldac-dec: init at 0.0.2-unstable-2024-11-12
qweered 133511d
pipewire: move to by-name
qweered 863e6a3
pipewire: 1.4.10 -> 1.6.0, enable structuredAttrs
qweered a80abe1
pipewire: add qweered as maintainer
qweered 476c5c5
wireplumber: move to by-name
qweered ac861d9
wireplumber: modernize, add qweered as maintainer
qweered File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| cmake, | ||
| nix-update-script, | ||
| }: | ||
|
|
||
| stdenv.mkDerivation { | ||
| pname = "libldac-dec"; | ||
| version = "0.0.2-unstable-2024-11-12"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "O2C14"; | ||
| repo = "libldac-dec"; | ||
| rev = "8c15f53b97c8322c18cff3fddf6d7129dbd3d349"; | ||
| hash = "sha256-pdeEtQXxL2pd9qTfLOEmPDn3POgo5qxRqbK807WN98s="; | ||
| }; | ||
|
|
||
| nativeBuildInputs = [ cmake ]; | ||
|
|
||
| # Upstream CMakeLists.txt doesn't have install rules | ||
| postPatch = '' | ||
| cat >> CMakeLists.txt <<'EOF' | ||
| install(TARGETS ldacBT_dec LIBRARY DESTINATION ''${CMAKE_INSTALL_LIBDIR}) | ||
| EOF | ||
| ''; | ||
|
|
||
| cmakeFlags = [ | ||
| "-DCMAKE_INSTALL_LIBDIR=lib" | ||
| ]; | ||
|
|
||
| passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; | ||
|
|
||
| meta = { | ||
| description = "LDAC decoding library implemented in another way"; | ||
| homepage = "https://github.com/O2C14/libldac-dec"; | ||
| license = lib.licenses.mit; | ||
| platforms = lib.platforms.unix; | ||
| maintainers = with lib.maintainers; [ qweered ]; | ||
| }; | ||
| } |
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,11 @@ | |
| libcamera, | ||
| libdrm, | ||
| gst_all_1, | ||
| ffmpeg, | ||
| # ffmpeg depends on SDL2 which depends on pipewire by default. | ||
| # Break the cycle by depending on ffmpeg-headless. | ||
| # Pipewire only uses libavcodec (via an SPA plugin), which isn't | ||
| # affected by the *-headless changes. | ||
| ffmpeg-headless, | ||
| fftwFloat, | ||
| bluezSupport ? stdenv.hostPlatform.isLinux, | ||
| bluez, | ||
|
|
@@ -47,8 +51,12 @@ | |
| fdk_aac, | ||
| libopus, | ||
| ldacbt, | ||
| libldac-dec, | ||
| spandsp, | ||
| modemmanager, | ||
| libpulseaudio, | ||
| onnxruntimeSupport ? false, | ||
| onnxruntime, | ||
| zeroconfSupport ? true, | ||
| avahi, | ||
| raopSupport ? true, | ||
|
|
@@ -80,7 +88,7 @@ in | |
|
|
||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "pipewire"; | ||
| version = "1.4.10"; | ||
| version = "1.6.0"; | ||
|
|
||
| outputs = [ | ||
| "out" | ||
|
|
@@ -95,8 +103,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| domain = "gitlab.freedesktop.org"; | ||
| owner = "pipewire"; | ||
| repo = "pipewire"; | ||
| rev = finalAttrs.version; | ||
| sha256 = "sha256-/Av2iXWInsY6S+PdbfCm1AFtHEFt4LXhgRJ6r9lqOpM="; | ||
| tag = finalAttrs.version; | ||
| hash = "sha256-Xc5ouBvT8v0hA3lPfCjhCicoem0jk4knevj7LJJipJ4="; | ||
| }; | ||
|
|
||
| patches = [ | ||
|
|
@@ -107,6 +115,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| ]; | ||
|
|
||
| strictDeps = true; | ||
| __structuredAttrs = true; | ||
|
|
||
| depsBuildBuild = [ buildPackages.stdenv.cc ]; | ||
| nativeBuildInputs = [ | ||
| docutils | ||
|
|
@@ -121,7 +131,7 @@ stdenv.mkDerivation (finalAttrs: { | |
|
|
||
| buildInputs = [ | ||
| dbus | ||
| ffmpeg | ||
| ffmpeg-headless | ||
| fftwFloat | ||
| glib | ||
| gst_all_1.gst-plugins-base | ||
|
|
@@ -156,7 +166,10 @@ stdenv.mkDerivation (finalAttrs: { | |
| ] | ||
| ++ lib.optional webrtcAudioProcessingSupport webrtc-audio-processing | ||
| ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib | ||
| ++ lib.optional ldacbtSupport ldacbt | ||
| ++ lib.optionals ldacbtSupport [ | ||
| ldacbt | ||
| libldac-dec | ||
| ] | ||
| ++ lib.optional libcameraSupport libcamera | ||
| ++ lib.optional zeroconfSupport avahi | ||
| ++ lib.optional raopSupport openssl | ||
|
|
@@ -178,9 +191,11 @@ stdenv.mkDerivation (finalAttrs: { | |
| liblc3 | ||
| sbc | ||
| fdk_aac | ||
| spandsp | ||
| ] | ||
| ++ lib.optional ffadoSupport ffado | ||
| ++ lib.optional stdenv.hostPlatform.isLinux libselinux | ||
| ++ lib.optional onnxruntimeSupport onnxruntime | ||
| ++ lib.optional modemmanagerSupport modemmanager; | ||
|
|
||
| # Valgrind binary is required for running one optional test. | ||
|
|
@@ -208,7 +223,7 @@ stdenv.mkDerivation (finalAttrs: { | |
| (lib.mesonEnable "avb" stdenv.hostPlatform.isLinux) | ||
| (lib.mesonEnable "v4l2" stdenv.hostPlatform.isLinux) | ||
| (lib.mesonEnable "pipewire-v4l2" stdenv.hostPlatform.isLinux) | ||
| (lib.mesonEnable "systemd" enableSystemd) | ||
| (lib.mesonEnable "libsystemd" enableSystemd) | ||
| (lib.mesonEnable "systemd-system-service" enableSystemd) | ||
| (lib.mesonEnable "udev" (!enableSystemd && stdenv.hostPlatform.isLinux)) | ||
| (lib.mesonEnable "ffmpeg" true) | ||
|
|
@@ -237,6 +252,7 @@ stdenv.mkDerivation (finalAttrs: { | |
| (lib.mesonEnable "compress-offload" true) | ||
| (lib.mesonEnable "man" true) | ||
| (lib.mesonEnable "snap" false) # we don't currently have a working snapd | ||
| (lib.mesonEnable "onnxruntime" onnxruntimeSupport) | ||
| ]; | ||
|
|
||
| # Fontconfig error: Cannot load default config file | ||
|
|
@@ -249,8 +265,9 @@ stdenv.mkDerivation (finalAttrs: { | |
| patchShebangs doc/*.py | ||
| patchShebangs doc/input-filter-h.sh | ||
|
|
||
| # Remove installed-test that runs forever | ||
| # Remove problematic installed-tests | ||
| sed -i -e "/test-pipewire-alsa-stress/d" pipewire-alsa/tests/meson.build | ||
| sed -i -e "/benchmark-aec/d" spa/tests/meson.build | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, what's wrong with this test? It worked for me.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its failing for me in vm, and for @c6rg0 too |
||
| ''; | ||
|
|
||
| postInstall = '' | ||
|
|
@@ -272,6 +289,7 @@ stdenv.mkDerivation (finalAttrs: { | |
| platforms = lib.platforms.linux ++ lib.platforms.freebsd; | ||
| maintainers = with lib.maintainers; [ | ||
| k900 | ||
| qweered | ||
| ]; | ||
| pkgConfigModules = [ | ||
| "libpipewire-0.3" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what is this used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to source code, for noise cancellation filter (filter-chain with ml model)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do they ship a filter that can use this out of the box? Sounds like something we may want to enable?