Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created November 26, 2018 14:36
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 cleverca22/19cd039fee563ba8ed29de870fc3ee3f to your computer and use it in GitHub Desktop.
Save cleverca22/19cd039fee563ba8ed29de870fc3ee3f to your computer and use it in GitHub Desktop.
with import <nixpkgs> { system = "i686-linux"; };
runCommandCC "wrapper" {} ''
cat > $out <<EOF
#!/bin/sh
export LD_LIBRARY_PATH=${lib.makeLibraryPath [ xlibs.libX11 libGLU_combined zlib libuuid gcc.cc openal ]}:.:/run/opengl-driver-32/lib
$(cat $NIX_CC/nix-support/dynamic-linker) ./Borderlands2
EOF
chmod +x $out
''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment