-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathshell.nix
More file actions
58 lines (55 loc) · 978 Bytes
/
shell.nix
File metadata and controls
58 lines (55 loc) · 978 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ pkgs ? import <nixpkgs> {} }:
let
rustOverlay = builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
pkgsWithRust = import <nixpkgs> {
overlays = [ (import rustOverlay) ];
};
rust = pkgsWithRust.rust-bin.stable.latest.default;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
cmake
perl
rust
patchelf
];
buildInputs = with pkgs; [
# GPUI dependencies
fontconfig
freetype
libxkbcommon
wayland
libglvnd
vulkan-loader
openssl
zlib
alsa-lib
libgit2
libdrm
libgbm
xorg.libxcb
xorg.libX11
xorg.libXi
xorg.libXrandr
xorg.libXcursor
libxcomposite
libxdamage
libxext
libxfixes
libxrandr
sqlite
];
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
wayland
libglvnd
vulkan-loader
libxkbcommon
fontconfig
freetype
xorg.libxcb
xorg.libX11
libdrm
libgbm
];
}