Skip to content

Instantly share code, notes, and snippets.

@tazjin
Created January 8, 2020 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tazjin/798e0e3389b9e4cffcebeb7983d2ad3c to your computer and use it in GitHub Desktop.
Save tazjin/798e0e3389b9e4cffcebeb7983d2ad3c to your computer and use it in GitHub Desktop.
(sb-alien:load-shared-object "/nix/store/pph1k412q5h8q20r10vmmnffwnh57bs1-openssl-1.1.1d/lib/libssl.so")
(save-lisp-and-die "/tmp/stringtest"
:executable t
:toplevel (lambda () nil)
:purify t)
[nix-shell:/tmp]$ sbcl --script hello.lisp
[nix-shell:/tmp]$ strings stringtest | rg '/nix/store'
/nix/store/4zhy7p7dhfjbaac0i0kb6f2ky1w3747k-glibc-2.27/lib/ld-linux-x86-64.so.2
/nix/store/4zhy7p7dhfjbaac0i0kb6f2ky1w3747k-glibc-2.27/lib
/nix/store/yaqym0xncgk3p7kpdx6nzcl804p6m27g-sbcl-1.5.6/lib/sbcl/
/nix/store/pph1k412q5h8q20r10vmmnffwnh57bs1-openssl-1.1.1d/lib/libssl.so
/nix/store/2skngb25y246h5pza1j6mjcwzd2av1kq-coreutils-8.31/bin/uname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment