-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
42 lines (40 loc) · 818 Bytes
/
Copy pathshell.nix
File metadata and controls
42 lines (40 loc) · 818 Bytes
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
with import <nixpkgs> {};
let src = fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
rev = "0508a66e28a5792fdfb126bbf4dec1029c2509e0";
sha256 = "sha256-rO/4oymKXU09wG2bcTt4uthPCp1XsBZjxuCJo3yVXNs=";
};
in
with import "${src.out}/rust-overlay.nix" pkgs pkgs;
mkShell rec {
name = "env";
nativeBuildInputs = [
clang_14
gcc11
pkgconfig
llvmPackages_latest.bintools
mold
];
buildInputs = [
gdb
latest.rustChannels.nightly.rust
openssl
rustfmt
cargo
udev
alsaLib
vulkan-loader
xlibsWrapper
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
libxkbcommon
wayland
libGL
];
shellHook = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.strings.makeLibraryPath buildInputs}
'';
}