blob: 32a07744879b2d032e12d129d2fbf9f26b85871e (
plain)
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
|
{ ... }:
let
moz_overlay = import (
builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
);
pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
env = with pkgs; [
rustChannels.stable.rust-std
rustChannels.stable.rust
rustChannels.stable.rustc
rustChannels.stable.cargo
];
dependencies = with pkgs; [
cmake
curl
gcc
openssl
pkgconfig
which
zlib
freetype
expat
];
xorgPackages = with pkgs.xorg; [
libXcursor
libXfont2
# libXpm
# libXtst
# libxshmfence
# libXft
libXrandr
libXext
# libXinerama
# libXrender
# libXxf86misc
# libxcb
libX11
# libXcomposite
libXfont
libXi
# libXt
# libxkbfile
pkgs.libGL
];
in
pkgs.mkShell rec {
buildInputs = env ++ dependencies ++ xorgPackages;
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
PROTOC = "${pkgs.protobuf}/bin/protoc";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath xorgPackages;
}
|