mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
projectm: fix build on darwin
This commit is contained in:
parent
5bcc4b27f9
commit
d10d6dfa4a
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ mkDerivation
|
{ stdenv
|
||||||
|
, mkDerivation
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
@ -39,12 +40,13 @@ mkDerivation rec {
|
||||||
"--enable-sdl"
|
"--enable-sdl"
|
||||||
];
|
];
|
||||||
|
|
||||||
fixupPhase = ''
|
fixupPhase = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
# NOTE: 2019-10-05: Upstream inserts the src path buring build into ELF rpath, so must delete it out
|
# NOTE: 2019-10-05: Upstream inserts the src path buring build into ELF rpath, so must delete it out
|
||||||
# upstream report: https://github.com/projectM-visualizer/projectm/issues/245
|
# upstream report: https://github.com/projectM-visualizer/projectm/issues/245
|
||||||
for entry in $out/bin/* ; do
|
for entry in $out/bin/* ; do
|
||||||
patchelf --set-rpath "$(patchelf --print-rpath $entry | tr ':' '\n' | grep -v 'src/libprojectM' | tr '\n' ':')" "$entry"
|
patchelf --set-rpath "$(patchelf --print-rpath $entry | tr ':' '\n' | grep -v 'src/libprojectM' | tr '\n' ':')" "$entry"
|
||||||
done
|
done
|
||||||
|
'' + ''
|
||||||
wrapQtApp $out/bin/projectM-pulseaudio
|
wrapQtApp $out/bin/projectM-pulseaudio
|
||||||
rm $out/bin/projectM-unittest
|
rm $out/bin/projectM-unittest
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue