-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (32 loc) · 721 Bytes
/
shell.nix
File metadata and controls
38 lines (32 loc) · 721 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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
# Rust toolchain
cargo
rustc
rustfmt
clippy
# Required system libraries for dependencies
xorg.libX11
xorg.libXi
xorg.libXtst
xorg.libXrandr
xorg.libxcb
xdotool
# Optional but useful
pkg-config
];
# Set library path for runtime
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.xorg.libX11
pkgs.xorg.libXi
pkgs.xorg.libXtst
pkgs.xorg.libXrandr
pkgs.xorg.libxcb
];
# Set PKG_CONFIG_PATH to help find the libraries
PKG_CONFIG_PATH = "${pkgs.xorg.libxcb}/lib/pkgconfig";
shellHook = ''
echo "colorbot development environment loaded"
'';
}