forked from versotile-org/verso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
60 lines (59 loc) · 1.46 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
with import <nixpkgs> { };
let
nixgl = import (fetchTarball "https://github.com/nix-community/nixGL/archive/489d6b095ab9d289fe11af0219a9ff00fe87c7c5.tar.gz") { enable32bits = false; };
pkgs_gnumake_4_3 = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/6adf48f53d819a7b6e15672817fa1e78e5f4e84f.tar.gz") { };
llvmPackages = llvmPackages_14; # servo/servo#31059
stdenv = stdenvAdapters.useMoldLinker llvmPackages.stdenv;
in
stdenv.mkDerivation {
name = "verso-env";
buildInputs = [
fontconfig
freetype
libunwind
xorg.libxcb
xorg.libX11
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
rustup
taplo
llvmPackages.bintools
llvmPackages.llvm
llvmPackages.libclang
udev
cmake
dbus
gcc
git
pkg-config
which
llvm
perl
yasm
m4
pkgs_gnumake_4_3.gnumake # servo/mozjs#375
libGL
mold
wayland
nixgl.auto.nixGLDefault
(python3.withPackages (ps: with ps; [pip dbus mako]))
];
LD_LIBRARY_PATH = lib.makeLibraryPath [
zlib
xorg.libXcursor
xorg.libXrandr
xorg.libXi
libxkbcommon
vulkan-loader
wayland
libGL
nixgl.auto.nixGLDefault
];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
# Allow cargo to download crates
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
# Enable colored cargo and rustc output
TERMINFO = "${ncurses.out}/share/terminfo";
}