Add Nix (Flakes) installation instructions
Set ELF interpreter for pocketenv on Linux
Avoid autoPatchelfHook; use patchelf instead
Disable the default ELF fixup and stripping hooks and enable patchelf so
the Deno binary's embedded standalone snapshot is preserved (avoids
"Could not find standalone binary section" error)
Disable fixup and wrap pocketenv with linker
Preserve binary and add minimal Linux wrapper
Set dontPatchShebangs and install the untouched binary into $out/bin.
On Linux use a minimal wrapper that execs the dynamic linker
via $0-wrapped to avoid modifying the executable and corrupting
Deno's appended snapshot. Remove macOS symlink logic.
Install binary as .pocketenv-wrapped and use $0
Make the Linux wrapper exec the dynamic linker with $0-wrapped so it
always refers to the final installed location. On macOS, symlink
.pocketenv-wrapped to the public bin name.
Add platform-specific wrapper for pocketenv
Move the original binary into libexec and install a small launcher
per platform. On Linux run the binary via the dynamic linker and
set LD_LIBRARY_PATH; add makeWrapper only for Linux. On Darwin create
a symlink. Preserve the Deno standalone by keeping dontStrip,
dontPatchELF and dontAutoPatchelf.
Unescape shell variables in pocketenv wrapper
Allow LD_LIBRARY_PATH and $@ to be expanded at runtime in the
generated wrapper script
Fix pocketenv wrapper quoting and LD_LIBRARY_PATH
Use template-based pocketenv wrapper on Linux
Make pocketenv LD_LIBRARY_PATH assignment robust
Use an explicit if/else to prepend __LIB_PATH__ to LD_LIBRARY_PATH only
when LD_LIBRARY_PATH is set, avoiding an extra colon and improving
readability and portability.
Replace manual ELF wrapper with patchelf
Disable patchelf and use bin wrapper launcher
Use substituted wrapper script instead of makeWrapper
Remove the nativeBuildInputs requirement for makeWrapper and the
preInstall/postInstall hooks. Create a lightweight wrapper at
$out/bin/pocketenv using the runtimeShell shebang and a "__TARGET__"
placeholder, then use substituteInPlace to replace the placeholder with
the actual libexec path and mark the wrapper executable.
Set default LANG and unset LC_ALL in pocketenv wrapper
Unindent pocketenv heredoc