mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
vere: remove dependency on nix-store path for static darwin binary
Poached from @eglaysher's work in #3380.
This commit is contained in:
parent
9e1f75da64
commit
8d0a65bb6e
@ -54,6 +54,12 @@ in stdenv.mkDerivation {
|
||||
mkdir -p $out/bin
|
||||
cp ./build/urbit $out/bin/urbit
|
||||
cp ./build/urbit-worker $out/bin/urbit-worker
|
||||
'' + lib.optionalString (stdenv.isDarwin && enableStatic) ''
|
||||
# Hack stolen from //nixpkgs/pkgs/stdenv/darwin/portable-libsystem.sh
|
||||
find "$out/bin" -exec \
|
||||
install_name_tool -change \
|
||||
${stdenv.cc.libc}/lib/libSystem.B.dylib \
|
||||
/usr/lib/libSystem.B.dylib {} \;
|
||||
'';
|
||||
|
||||
CFLAGS = [ (if enableDebug then "-O0" else "-O3") "-g" ]
|
||||
|
Loading…
Reference in New Issue
Block a user