Skip to content

Commit

Permalink
Revert "drl: update darwin fix to match fpc"
Browse files Browse the repository at this point in the history
This reverts commit 85b3701, which
broke aarch64-darwin builds.
  • Loading branch information
Rhys-T committed Nov 30, 2024
1 parent 85b3701 commit a3eaac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/drl/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ in stdenv.mkDerivation rec {
substituteInPlace "$FPCVALKYRIE_ROOT"/libs/vsdl2ttflibrary.pas \
--replace-fail '${if stdenv.hostPlatform.isDarwin then "SDL2_ttf.framework/SDL2_ttf" else "libSDL2_ttf-2.0.so.0"}' '${lib.getLib SDL2_ttf}/lib/libSDL2_ttf.${libExt}'
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
NIX_LDFLAGS+=" -syslibroot $SDKROOT"
NIX_LDFLAGS+=" -F$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
NIX_LDFLAGS+=" -L$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib"
if [ -d "$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift" ]; then
NIX_LDFLAGS+=" -L$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift"
fi
sed -E -i '
/glExtLoader/ {
/GetSymbolExt\s*:=/ s/glExtLoader/GetSymbol/
Expand Down

0 comments on commit a3eaac3

Please sign in to comment.