pulseaudio-modules-bt: unstable-2018-09-11 -> unstable-2018-10-16
This commit is contained in:
parent
4473d3d56b
commit
dc427b0ff0
@ -4,11 +4,14 @@
|
|||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, pulseaudio
|
, pulseaudio
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
, ffmpeg_4
|
||||||
|
, patchelf
|
||||||
, libtool
|
, libtool
|
||||||
, cmake
|
, cmake
|
||||||
, bluez
|
, bluez
|
||||||
, dbus
|
, dbus
|
||||||
, sbc
|
, sbc
|
||||||
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -20,37 +23,53 @@ let
|
|||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "pulseaudio-modules-bt-${version}";
|
name = "pulseaudio-modules-bt-${version}";
|
||||||
version = "unstable-2018-09-11";
|
version = "unstable-2018-10-16";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EHfive";
|
owner = "EHfive";
|
||||||
repo = "pulseaudio-modules-bt";
|
repo = "pulseaudio-modules-bt";
|
||||||
rev = "9c6ad75382f3855916ad2feaa6b40e37356d80cc";
|
rev = "552c2b48c0cc7dd44d0746b261f7c7d5559e8e30";
|
||||||
sha256 = "1iz4m3y6arsvwcyvqc429w252dl3apnhvl1zhyvfxlbg00d2ii0h";
|
sha256 = "052jb1hjx1in7bafx4zpn78s7r6f2y7djriwi36dzqy9wmalmyjy";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./fix-install-path.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
patchelf
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
pulseaudio
|
pulseaudio
|
||||||
|
ffmpeg_4
|
||||||
libtool
|
libtool
|
||||||
bluez
|
bluez
|
||||||
dbus
|
dbus
|
||||||
sbc
|
sbc
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [
|
postPatch = ''
|
||||||
"-L${pulseaudio}/lib/pulseaudio"
|
# Upstream bundles pulseaudio as a submodule
|
||||||
];
|
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
rm -r pa
|
rm -r pa
|
||||||
ln -s ${pulseSources} pa
|
ln -s ${pulseSources} pa
|
||||||
|
|
||||||
|
# Pulseaudio version is detected with a -rebootstrapped suffix which build system assumptions
|
||||||
|
substituteInPlace config.h.in --replace PulseAudio_VERSION ${pulseaudio.version}
|
||||||
|
substituteInPlace CMakeLists.txt --replace '${"\${PulseAudio_VERSION}"}' ${pulseaudio.version}
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
for so in $out/lib/pulse-${pulseaudio.version}/modules/*.so; do
|
||||||
|
orig_rpath=$(patchelf --print-rpath "$so")
|
||||||
|
patchelf \
|
||||||
|
--set-rpath "$orig_rpath:${lib.getLib ffmpeg_4}/lib:$out/lib/pulse-${pulseaudio.version}/modules" \
|
||||||
|
"$so"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 0f5baa0..1f35cce 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -122,5 +121,4 @@ INSTALL(TARGETS
|
||||||
|
module-bluez5-device
|
||||||
|
module-bluetooth-discover
|
||||||
|
module-bluetooth-policy
|
||||||
|
- LIBRARY DESTINATION ${PulseAudio_modlibexecdir})
|
||||||
|
-
|
||||||
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pulse-${PulseAudio_VERSION}/modules/)
|
Loading…
x
Reference in New Issue
Block a user