blob: c5a39e4cbb922fe695384c186c7ade23351fbb9f (
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
|
{
pkgs,
lib,
config,
...
}:
{
# https://devenv.sh/languages/
languages.rust.enable = true;
# https://devenv.sh/packages/
packages = with pkgs; [
bacon
wayland
libxkbcommon
vulkan-loader
];
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [
wayland
libxkbcommon
vulkan-loader
libGL
]);
# Format staged files on commit with treefmt; rustfmt handles Rust sources.
treefmt.enable = true;
treefmt.config.programs.rustfmt.enable = true;
git-hooks.hooks.treefmt.enable = true;
# See full reference at https://devenv.sh/reference/options/
}
|