Skip to content

Commit

Permalink
projectm: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
r-burns committed Sep 27, 2020
1 parent 5bcc4b2 commit d10d6df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/applications/audio/projectm/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ mkDerivation
{ stdenv
, mkDerivation
, lib
, fetchFromGitHub
, autoreconfHook
Expand Down Expand Up @@ -39,12 +40,13 @@ mkDerivation rec {
"--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
# upstream report: https://github.com/projectM-visualizer/projectm/issues/245
for entry in $out/bin/* ; do
patchelf --set-rpath "$(patchelf --print-rpath $entry | tr ':' '\n' | grep -v 'src/libprojectM' | tr '\n' ':')" "$entry"
done
'' + ''
wrapQtApp $out/bin/projectM-pulseaudio
rm $out/bin/projectM-unittest
'';
Expand Down

0 comments on commit d10d6df

Please sign in to comment.