https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
9 lines
153 B
Text
9 lines
153 B
Text
#!@stdenv_shell@ -e
|
|
|
|
source @dfInit@
|
|
|
|
export DYLD_LIBRARY_PATH="$env_dir/libs"
|
|
export DYLD_FRAMEWORK_PATH="$env_dir/libs"
|
|
|
|
cd "$DF_DIR"
|
|
exec "$exe" "$@"
|