mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
18 lines
486 B
Nix
18 lines
486 B
Nix
{
|
|
stdenv,
|
|
writeShellScriptBin,
|
|
fetchzip,
|
|
glibc,
|
|
}: let
|
|
src = fetchzip {
|
|
url = "https://github.com/trexminer/T-Rex/releases/download/0.26.8/t-rex-0.26.8-linux.tar.gz";
|
|
sha256 = "sha256-qM/YIMqcntVYD8zJGCORQgIn1h4J4CDobyXwcdK3li8=";
|
|
stripRoot = false;
|
|
};
|
|
in
|
|
writeShellScriptBin "t-rex"
|
|
''
|
|
LD_LIBRARY_PATH=${stdenv.cc.cc.lib}/lib/:${glibc}/lib/:/run/opengl-driver/lib/
|
|
exec ${glibc}/lib64/ld-linux-x86-64.so.2 \
|
|
${src}/t-rex --no-watchdog "$@"
|
|
''
|