forked from audulus/vger-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
39 lines (32 loc) · 768 Bytes
/
shell.nix
File metadata and controls
39 lines (32 loc) · 768 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
let
nixpkgs-src = builtins.fetchTarball {
# 23.05
url = "https://github.com/NixOS/nixpkgs/archive/nixos-23.05.tar.gz";
};
pkgs = import nixpkgs-src {
config = {
# allowUnfree may be necessary for some packages, but in general you should not need it.
allowUnfree = false;
};
};
lib-defs = with pkgs; [
rustup
libxkbcommon
libGL
# WINIT_UNIX_BACKEND=wayland
wayland
# WINIT_UNIX_BACKEND=x11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
];
shell = pkgs.mkShell {
buildInputs = lib-defs;
shellHook = ''
rustup update
# Augment the dynamic linker path
export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath lib-defs}"
'';
};
in shell