Skip to content

Commit

Permalink
Merge branch 'main' into bm/format-using-unified-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
airportyh authored Jun 25, 2024
2 parents aa2992d + 2d491ec commit de265c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@
cat >$out/bin/$binName <<-EOF
#!${final.bash}/bin/bash
if [ -n "\''${REPLIT_LD_LIBRARY_PATH-}" ]; then
export LD_LIBRARY_PATH="\$REPLIT_LD_LIBRARY_PATH:\$LD_LIBRARY_PATH"
if test "\''${REPLIT_RTLD_LOADER:-}" = "1" && test "\''${REPLIT_NIX_CHANNEL:-}" != "legacy"
then
# activate RTLD loader!
export LD_AUDIT="${pkgs.replit-rtld-loader}/rtld_loader.so"
else
export LD_LIBRARY_PATH="\$REPLIT_LD_LIBRARY_PATH:\$LD_LIBRARY_PATH"
fi
fi
exec "$bin" "\$@"
EOF
Expand Down

0 comments on commit de265c4

Please sign in to comment.