forked from LayerTwo-Labs/plain-bitassets
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
35 lines (34 loc) · 710 Bytes
/
Copy pathshell.nix
File metadata and controls
35 lines (34 loc) · 710 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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
autoconf
automake
boost
db4
gcc
libevent
libtool
openssl
pkg-config
];
# Needed for X11
shellHook =
let
common-libs = with pkgs; lib.makeLibraryPath [
libGL
];
wayland-libs = with pkgs; lib.makeLibraryPath [
libxkbcommon
wayland
];
x11-libs = with pkgs; lib.makeLibraryPath [
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
];
in ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${common-libs}:${wayland-libs}:${x11-libs}"
export BOOST_LIB_DIR="${pkgs.boost.out}/lib"
'';
}