diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/default.nix | 12 | ||||
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/fix-install-path.patch | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/default.nix index 556dd5f10619..42e780af0989 100644 --- a/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/default.nix @@ -18,8 +18,12 @@ let pulseSources = runCommand "pulseaudio-sources" {} '' mkdir $out - tar -xf ${pulseaudio.src} - mv pulseaudio*/* $out/ + if [ -d ${pulseaudio.src} ]; then + ln -s ${pulseaudio.src}/* $out/ + else + tar -xf ${pulseaudio.src} + mv pulseaudio*/* $out/ + fi ''; in stdenv.mkDerivation rec { @@ -61,7 +65,7 @@ in stdenv.mkDerivation rec { # 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} + substituteInPlace CMakeLists.txt --replace '${"\${PULSE_DIR}"}' ${pulseaudio.pulseDir} # Fraunhofer recommends to enable afterburner but upstream has it set to false by default substituteInPlace src/modules/bluetooth/a2dp/a2dp_aac.c \ @@ -72,7 +76,7 @@ in stdenv.mkDerivation rec { for so in $out/lib/pulse-${pulseaudio.version}/modules/*.so; do orig_rpath=$(patchelf --print-rpath "$so") patchelf \ - --set-rpath "${ldacbt}/lib:${lib.getLib ffmpeg}/lib:$out/lib/pulse-${pulseaudio.version}/modules:$orig_rpath" \ + --set-rpath "${ldacbt}/lib:${lib.getLib ffmpeg}/lib:$out/${pulseaudio.pulseDir}/modules:$orig_rpath" \ "$so" done ''; diff --git a/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/fix-install-path.patch b/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/fix-install-path.patch index 3c498fe8af1b..7cdb7de4dd13 100644 --- a/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/fix-install-path.patch +++ b/infra/libkookie/nixpkgs/pkgs/applications/audio/pulseaudio-modules-bt/fix-install-path.patch @@ -8,4 +8,4 @@ index 8d20dbf..63fe7ba 100644 module-bluetooth-policy - LIBRARY DESTINATION ${PulseAudio_modlibexecdir}) - -+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pulse-${PulseAudio_VERSION}/modules/) ++ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${PULSE_DIR}/modules/) |