Commit graph

114 commits

Author SHA1 Message Date
Jörg Thalheim b140a67163
Merge pull request #180976 from Yarny0/pulseaudio-wrapper
pulseaudioFull: fix wrapGApp wrapping, fix vm tests
2022-09-17 14:45:26 +02:00
Weijia Wang c882c08f9c pulseaudio: remove compat for 15.0 2022-08-27 22:02:19 +02:00
sternenseemann eee1754df0 pulseaudio: fix evaluation with Nix 2.3
Path interpolation syntax has been introduced in Nix 2.4 and may not be
used in nixpkgs which needs to be able to be evaluated with Nix 2.3.
2022-08-27 10:11:01 +02:00
Yarny0 3871f8be8d pulseaudioFull: fix wrapGApp wrapping
Since

7a2605e0f3

the pulseaudio build recipe incorporates the `wrapGAppsHook`
wrapper setup-hook if `advancedBluetoothCodecs` are enabled.
This wrapper setup-hook -- like most wrappers --
wraps binaries in `$out/bin` by first renaming them,
then placing a wrapper script where the original binary was.

Unfortunatelly, pulseaudio doesn't like its
binary moved around after installation:
It records the binaries path during installation time

e5ad31e873/meson.build (L154)

then checks the path in `/proc/self/exe` and complains

> Jun 16 19:06:48 nixosb pulseaudio[2219]: W: [.pulseaudio-wra] main.c: /proc/self/exe does not point to /nix/store/bqfyzxwpxa2ydmyvh3j32xrm4chxbj22-pulseaudio-15.0/bin/pulseaudio, cannot self execute. Are you playing games?

if they don't match

e5ad31e873/src/daemon/main.c (L577)

Somehow, this also results in a real bug:
`pacmd` fails to connect to the pulseaudio server, see

https://github.com/NixOS/nixpkgs/issues/177915

To fix this issue, the commit at hand changes the
installation directory for binaries to `$out/.bin-unwrapped`.
After the installation, `$out/bin` is created by hand and
populated with symlinks to files in `$out/.bin-unwrapped`.
`wrapGAppsHook` doesn't know or care about the `.bin-unwrapped`
directory; it just sees all the symlinks in `bin`,
renames them and places wrapper scripts beside them.

Effectively, this leaves the original
binary in `.bin-unwrapped` unchanged!
So pulseaudio will find itself still in its oritinal place,
and "users" of the package can call pulseaudio
via the wrapper script in `bin` as usual.
2022-08-18 16:51:18 +02:00
Vladimír Čunát f0ccee4a6d
Merge #184329: pulseaudio: add darwin support (into staging) 2022-08-15 13:47:43 +02:00
Weijia Wang fd031c0299 pulseaudio: add darwin support 2022-08-02 18:39:28 +02:00
R. Ryantm b408d0f602 pulseaudio: 15.0 -> 16.1 2022-08-01 06:35:57 +00:00
pennae e18ca9a910 pulseaudio: fix !bluetoothSupport build 2022-05-29 22:50:18 +02:00
Thiago Kenji Okada ee67a98c58 libpulseaudio: make darwin changes conditionally to avoid mass-rebuild 2022-05-10 14:26:37 +01:00
Andrew Childs 9cf2c67910 libpulseaudio: fix build on x86_64-darwin
Signed-off-by: Thiago Kenji Okada <thiagokokada@gmail.com>
2022-05-10 10:04:43 +01:00
Alex Habich 629a74477f
libpulseaudio: preserve vapi files
The current postInstall removes all of $out/share, which also includes pulse's
vapi/deps files. Certain projects (budgie-desktop, for example) require these
definitions, but do not require the full pulseaudio server. Preserving these
files allows these projects to only depend on libpulseaudio.

Fixes #73463.
2022-04-26 11:05:33 -05:00
Trolli Schmittlauch d62bf28b76
pulseaudio: hide advanced bluetooth codecs behind default-false feature flag
pulseaudioFull enables this feature flag, but the plain pulseaudio attribute does not
2022-04-20 15:07:16 +02:00
Trolli Schmittlauch 7a2605e0f3
pulseaudio: support advanced codecs when enabling bluetooth support
- this relies on gstreamer for encoding
- advanced bluetooth
  codecs include LDAC and aptX
2022-04-20 15:07:16 +02:00
Ryan Burns e839c8e0cb pulseaudio: 14.2 -> 15.0, switch to meson, enable tests 2022-04-02 22:15:45 +02:00
Mark Vainomaa 17dbf56cea
libpulseaudio: fix aarch64-darwin build
Removes darwin Libc buildInput, which does not appear to be needed on
x86_64, and which does not support aarch64 at all (too old)
2022-01-02 17:05:17 +02:00
Felix Buehler da10de797c pulseaudio: replace name with pname&version 2021-12-03 19:38:53 +01:00
toonn 40b7dd7cce pulseaudio: Stop passing sdk argument 2021-11-24 15:17:13 -08:00
toonn 7eaf240e72 pulseaudio: Drop Apple SDK dependency
The x86_64 and aarch64 SDK attributes are named differently and don't
have the same contents. This was the motivation to try dropping the SDK
dependency altogether, relying only on the Libc and some frameworks.
2021-11-24 15:17:13 -08:00
toonn 18ba22baba pulseaudio: Remove /usr/include impurity on Darwin 2021-11-24 15:17:13 -08:00
Artturin f7effe330a pulseaudio: fix build with strictDeps 2021-11-05 19:57:04 +02:00
Angus Trau 85a09cf3a3 pulseaudio: fix build on aarch64-darwin 2021-08-01 19:15:40 +10:00
AndersonTorres e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
R. RyanTM d34e3142b2 libpulseaudio: 14.0 -> 14.2 2021-01-22 21:33:54 +01:00
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Florian Klink 767252d232 pulseaudio: fix cross compilation by disabling gsettings when cross-compiling
When cross-compiling, pulseaudio seems to not find some m4 macro
providing GSETTINGS_RULES.

However, apart from the obviously missing gsettings support, this works
just fine.
2021-01-01 23:17:56 +01:00
Luke Granger-Brown b4ca0dd5f5 pulseaudio: 13.0 -> 14.0 2020-11-29 13:27:45 +00:00
Edmund Wu 0e4d0d95d0 treewide: generate pulseaudio pulseDir 2020-11-09 19:24:42 +01:00
Matthew Bauer 8f0c1adda2 pulseaudio: use prefixed pkg-config 2020-06-25 00:09:22 -04:00
Piotr Bogdan e7d4b315da pulseaudio: enable soxr (resampler) support 2020-05-15 13:58:04 +01:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
adisbladis e41f3d9ef3
pulseaudio: Enable bluetooth support by default
It only increases the closure size by 0.5M and users who do not set
the NixOS option `hardware.pulseaudio.package = pkgs.pulseaudioFull;`
will be stumped by their bluetooth audio not working.
2020-03-30 14:36:06 +01:00
Maciej Krüger 674efe45dd
pulseaudio: remove qpaeq 2020-01-21 09:57:05 +01:00
Jan Tojnar 8cbc862b83
dconf: move to top-level 2019-12-01 01:01:40 +01:00
Will Dietz 5d49ee3e5d pulseaudio: 12.2 -> 13.0
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/13.0/
2019-09-24 22:32:30 -04:00
Frederik Rietdijk 3fb275d166 pulseaudio: fix build and eval 2019-06-10 11:15:40 +02:00
Frederik Rietdijk 4416712772 Revert "fix eval"
Was not sufficient.

This reverts commit bce1f11f5d.
2019-06-10 10:34:21 +02:00
Frederik Rietdijk bce1f11f5d fix eval 2019-06-09 13:54:46 +02:00
Frederik Rietdijk d3afcac771 Merge master into staging-next 2019-06-09 12:28:52 +02:00
Aristid Breitkreuz dacc02faa5 pulseaudio: Fix detection of ALSA UCM
This one was a bit tricky to find because it only causes a runtime
error, and pulseaudio has shims for most ALSA UCM methods except one.
(I guess nobody ever really tests pulseaudio in combination with
UCM-less ALSA?)

ALSA 1.1.8 had ${alsa-dev}/include/alsa/ in the pkg-config file, which
was considered wrong and fixed in 1.1.9.

However, pulseaudio was relying on being able to include ALSA headers
like <asoundlib.h> and <use-case.h> rather than <alsa/asoundlib.h> and
<alsa/use-case.h>. (For asoundlib.h it only causes a warning, because
the ALSA guys created a shim for that header.)

These two patches change pulseaudio to use the correct include
directives.
2019-06-08 14:00:22 +02:00
Franz Pletz b4fa23991b
pulseaudio: fix alsa due to alsaLib headers move
The pulseaudio alsa module would fail to load due to missing symbols.
2019-06-04 17:10:14 +02:00
Jörg Thalheim b5c1deca8a
treewide: remove wkennington as maintainer
He prefers to contribute to his own nixpkgs fork triton.
Since he is still marked as maintainer in many packages
this leaves the wrong impression he still maintains those.
2019-01-26 10:05:32 +00:00
Jan Tojnar 63ef1e9381
Merge pull request #43160 from jtojnar/pulseaudio-12
pulseaudio: 11.1 → 12.2
2018-07-29 22:40:54 +02:00
Jan Tojnar d69f3a2a43
pulseaudio: 11.1 → 12.2
GConf was finally removed in favour of GSettings.

Removes patches that were upstreamed and caps-fix.patch, which is
not needed since f1d465f429.
2018-07-29 21:19:45 +02:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Shea Levy 88d10c7f1d
libpulseaudio: Add upstream glibc 2.27-compat patch 2018-03-17 21:58:14 -04:00
Tim Steinbach 87658f3632
pulseaudio: 11.0 -> 11.1 2018-02-25 12:49:25 -05:00
Will Dietz a0ee888f1d pulseaudio: patch for musl 2018-02-13 09:44:54 -06:00
John Ericson 6810ae7935 pulseaudio: Add separate runtime libtool dep for dynamic linking 2017-09-21 15:49:55 -04:00
Cray Elliott dc3f0d471a pulseaudio: 10.0 -> 11.0
remove darwin patch that has been included in this upstream release
2017-09-08 13:29:45 -07:00
Dan Peebles 90b9719f4f treewide: fix the remaining issues with meta attributes 2017-04-29 04:24:34 +00:00