mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
ddnet-server: fix Darwin build
The server variant of the ddnet package does not ship the client, so we
don't need to patch in libsteam_api.dylib
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit acd3e908a0)
This commit is contained in:
committed by
github-actions[bot]
parent
832f74c717
commit
fd77334318
@@ -115,7 +115,7 @@ stdenv.mkDerivation rec {
|
||||
rm -rf $out/share/metainfo
|
||||
'';
|
||||
|
||||
preFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
preFixup = lib.optionalString (stdenv.hostPlatform.isDarwin && buildClient) ''
|
||||
# Upstream links against <prefix>/lib while it installs this library in <prefix>/lib/ddnet
|
||||
install_name_tool -change "$out/lib/libsteam_api.dylib" "$out/lib/ddnet/libsteam_api.dylib" "$out/bin/DDNet"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user