-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
43 lines (40 loc) · 890 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
with import ./nix/pkgs.nix {};
let merged-openssl = pkgs.symlinkJoin { name = "merged-openssl"; paths = [ pkgs.openssl.out pkgs.openssl.dev ]; };
in stdenv.mkDerivation rec {
name = "rust-env";
env = buildEnv { name = name; paths = buildInputs; };
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
OPENSSL_DIR = "${merged-openssl}";
buildInputs = [
rustup
clang
llvm
llvmPackages.libclang
openssl
cacert
niv
pkg-config
alsa-lib
libudev-zero
xorg.libX11
xorg.libXi
xorg.libXinerama
xorg.libXext
xorg.libXcursor
xorg.libXrandr
libGL
SDL2
];
APPEND_LIBRARY_PATH = lib.makeLibraryPath [
libGL
xorg.libX11
xorg.libXi
xorg.libXinerama
xorg.libXext
xorg.libXcursor
xorg.libXrandr
];
shellHook = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APPEND_LIBRARY_PATH"
'';
}