Created
April 14, 2019 16:17
-
-
Save leroycep/818c86adeb4d7fe4def1f0fde007378f to your computer and use it in GitHub Desktop.
nix-shell environment for running veloren
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); | |
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | |
in | |
with nixpkgs; | |
stdenv.mkDerivation { | |
name = "veloren-env"; | |
buildInputs = [ | |
(nixpkgs.rustChannelOf { date = "2019-04-11"; channel = "nightly"; }).rust | |
git | |
pkgconfig | |
openssl | |
gcc | |
libstdcxx5 | |
libGL | |
xorg.libX11 xorg.libXcursor xorg.libXrandr xorg.libXi | |
]; | |
shellHook = '' | |
export RUST_BACKTRACE=1 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${xorg.libX11}/lib | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${xorg.libXcursor}/lib | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${xorg.libXrandr}/lib | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${xorg.libXi}/lib | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${libGL}/lib | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in shellHook, it should be xorg.libX11.out, because it default point to xorg.libX11.bin.